Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix Wayland IME handling with multiple windows (#58712)

feeiyu137e677a0561
diff --git a/crates/gpui_linux/src/linux/wayland/window.rs b/crates/gpui_linux/src/linux/wayland/window.rs
index 3cab3e7ea8a..33b103e5fb2 100644
--- a/crates/gpui_linux/src/linux/wayland/window.rs
+++ b/crates/gpui_linux/src/linux/wayland/window.rs
@@ -604,6 +604,9 @@ impl WaylandWindowStatePtr {
fn update_ime_enabled(&self) {
let mut state = self.state.borrow_mut();
+ if !state.active {
+ return;
+ }
let client = state.client.clone();
let ime_enabled = state
.input_handler