diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2023-12-22 02:27:35 +0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-22 02:27:35 +0400 |
commit | caf8c7fc7feca662528e46bd5455054ad9daeb02 (patch) | |
tree | 895da91d4ee24a7a812ac1b9396af9678c8d1a70 | |
parent | 90ec158a9428743afe8e8acf35c7ac417445ffe9 (diff) | |
download | alacritty-caf8c7fc7feca662528e46bd5455054ad9daeb02.tar.gz alacritty-caf8c7fc7feca662528e46bd5455054ad9daeb02.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. |