Keep IME always enabled on X11

Fixes #7195.
This commit is contained in:
Kirill Chibisov 2023-12-22 02:27:35 +04:00 committed by GitHub
parent 90ec158a94
commit caf8c7fc7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.