aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2023-12-22 02:27:35 +0400
committerGitHub <noreply@github.com>2023-12-22 02:27:35 +0400
commitcaf8c7fc7feca662528e46bd5455054ad9daeb02 (patch)
tree895da91d4ee24a7a812ac1b9396af9678c8d1a70
parent90ec158a9428743afe8e8acf35c7ac417445ffe9 (diff)
downloadalacritty-caf8c7fc7feca662528e46bd5455054ad9daeb02.tar.gz
alacritty-caf8c7fc7feca662528e46bd5455054ad9daeb02.zip
Keep IME always enabled on X11
Fixes #7195.
-rw-r--r--alacritty/src/display/window.rs5
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.