diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2023-12-22 02:27:35 +0400 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2023-12-22 10:42:02 +0100 |
commit | c75cda36f246ebaee76b4d5ec4329fc668692398 (patch) | |
tree | 7f0031976e154e6cc0a05a7da2a9397bc308a145 | |
parent | 476bebdadcc932d71414d5663e4964b3309d0804 (diff) | |
download | alacritty-c75cda36f246ebaee76b4d5ec4329fc668692398.tar.gz alacritty-c75cda36f246ebaee76b4d5ec4329fc668692398.zip |
Keep IME always enabled on X11
Fixes #7195.
-rw-r--r-- | alacritty/src/display/window.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/alacritty/src/display/window.rs b/alacritty/src/display/window.rs index 14df091d..f36d05e9 100644 --- a/alacritty/src/display/window.rs +++ b/alacritty/src/display/window.rs @@ -410,7 +410,10 @@ impl Window { } pub fn set_ime_allowed(&self, allowed: bool) { - self.window.set_ime_allowed(allowed); + // Skip runtime IME manipulation on X11 since it breaks some IMEs. + if !self.is_x11 { + self.window.set_ime_allowed(allowed); + } } /// Adjust the IME editor position according to the new location of the cursor. |