Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix Wayland keyrepeat getting cancelled by unrelated keyup (#11052)
Jakob Hellermann393b16d2262d
diff --git a/crates/gpui/src/platform/linux/wayland/client.rs b/crates/gpui/src/platform/linux/wayland/client.rsindex 8f23b229215..698134bcbc9 100644--- a/crates/gpui/src/platform/linux/wayland/client.rs+++ b/crates/gpui/src/platform/linux/wayland/client.rs@@ -843,7 +843,9 @@ impl Dispatch<wl_keyboard::WlKeyboard, ()> for WaylandClientStatePtr {keystroke: Keystroke::from_xkb(keymap_state, state.modifiers, keycode),});- state.repeat.current_keysym = None;+ if state.repeat.current_keysym == Some(keysym) {+ state.repeat.current_keysym = None;+ }drop(state);focused_window.handle_input(input);