Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
linux/x11: Fix closing of GPUI windows not working (#13201)
Thorsten Ball64d815a1766d
diff --git a/crates/gpui/src/platform/linux/x11/client.rs b/crates/gpui/src/platform/linux/x11/client.rsindex 2e9add68da6..05e20b5d8a3 100644--- a/crates/gpui/src/platform/linux/x11/client.rs+++ b/crates/gpui/src/platform/linux/x11/client.rs@@ -475,9 +475,8 @@ impl X11Client {if atom == state.atoms.WM_DELETE_WINDOW {// window "x" button clicked by userif window.should_close() {- let window_ref = state.windows.remove(&event.window)?;- state.loop_handle.remove(window_ref.refresh_event_token);// Rest of the close logic is handled in drop_window()+ window.close();}}}