Skip to content

Commit

Permalink
Keep IME always enabled on X11
Browse files Browse the repository at this point in the history
Fixes #7195.
  • Loading branch information
kchibisov committed Dec 21, 2023
1 parent 90ec158 commit caf8c7f
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);
// 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.
Expand Down

0 comments on commit caf8c7f

Please sign in to comment.