Skip to content

Commit

Permalink
Keep IME always enabled on X11
Browse files Browse the repository at this point in the history
  • Loading branch information
kchibisov committed Dec 21, 2023
1 parent 3d7d81c commit 367f71b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion alacritty/src/display/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,10 @@ impl Window {
}

pub fn set_ime_allowed(&self, allowed: bool) {
self.window.set_ime_allowed(allowed);
// NOTE: don't manipulate X11 IME at runtime since it tends to break with 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.
Expand Down

0 comments on commit 367f71b

Please sign in to comment.