Fixed tests failing due to move
Yes I'm too lazy to update dummy-rustwlc to make KeySym have copy
semantics, it's going away eventually so it's not worth the effort.
This will not affect runtime, because clone is the same as copy here.
@@ -249,7 +249,7 @@ impl Mode for Default {
leds: KeyboardLed::empty()
};
let sym = keyboard::get_keysym_for_key(key, empty_mods);
- let press = KeyPress::new(mods.mods, sym);
+ let press = KeyPress::new(mods.mods, sym.clone());
awesome::keygrabber_handle(mods, sym, state).unwrap_or_else(|err| {
warn!("handling keygrabber returned error: {:#?}", err);
});
