Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
wayland: Hopefully fix a panic recenty added in #32784 (#32808)
Michael Sloanbaad66c74022
diff --git a/crates/gpui/src/platform/linux/wayland/client.rs b/crates/gpui/src/platform/linux/wayland/client.rsindex c2122c97481..2aa0408e652 100644--- a/crates/gpui/src/platform/linux/wayland/client.rs+++ b/crates/gpui/src/platform/linux/wayland/client.rs@@ -1252,12 +1252,12 @@ impl Dispatch<wl_keyboard::WlKeyboard, ()> for WaylandClientStatePtr {keymap_state.update_mask(mods_depressed, mods_latched, mods_locked, 0, 0, group);state.modifiers = Modifiers::from_xkb(keymap_state);- if let Some(focused_window) = focused_window {- let input = PlatformInput::ModifiersChanged(ModifiersChangedEvent {- modifiers: state.modifiers,- });+ let input = PlatformInput::ModifiersChanged(ModifiersChangedEvent {+ modifiers: state.modifiers,+ });+ drop(state);- drop(state);+ if let Some(focused_window) = focused_window {focused_window.handle_input(input);}