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.

Prevent inactive windows from updating the IME position on linux/Wayland (#62086)

feeiyu655ed1385b00
diff --git a/crates/gpui_linux/src/linux/wayland/window.rs b/crates/gpui_linux/src/linux/wayland/window.rs
index 6e4bd304f2f..75315710f6b 100644
--- a/crates/gpui_linux/src/linux/wayland/window.rs
+++ b/crates/gpui_linux/src/linux/wayland/window.rs
@@ -1891,6 +1891,9 @@ impl PlatformWindow for WaylandWindow {
fn update_ime_position(&self, bounds: Bounds<Pixels>) {
let state = self.borrow();
+ if !state.active {
+ return;
+ }
state.client.update_ime_position(bounds);
}