Keep IME always enabled on X11

Fixes #7195.
This commit is contained in:
Kirill Chibisov authored and Christian Duerr committed 2023-12-22 10:42:02 +01:00
1 parent 476bebdadc
commit c75cda36f2
1 file changed
+4 -1
+4 -1
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.