From 0f8d8bcf15dc8c84e984f07e411b331c961dd0a6 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Sun, 9 Oct 2022 09:55:19 +0300 Subject: [PATCH] On X11, fix IME crashing without available styles Fixes #2510. --- CHANGELOG.md | 4 +- .../linux/x11/ime/input_method.rs | 54 ++++++++++--------- src/platform_impl/linux/x11/ime/mod.rs | 8 +-- 3 files changed, 37 insertions(+), 29 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 61c402060a3..fedbe852d58 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,9 @@ And please only add new entries to the top of this list, right below the `# Unre # Unreleased -# 0.27.3 (2022-9-10) +- On X11, fix XIM not picking IME when no styles advertised. + +# 0.27.3 - On Windows, added `WindowExtWindows::set_undecorated_shadow` and `WindowBuilderExtWindows::with_undecorated_shadow` to draw the drop shadow behind a borderless window. - On Windows, fixed default window features (ie snap, animations, shake, etc.) when decorations are disabled. diff --git a/src/platform_impl/linux/x11/ime/input_method.rs b/src/platform_impl/linux/x11/ime/input_method.rs index ca78a1bdabf..cb9da36a4dc 100644 --- a/src/platform_impl/linux/x11/ime/input_method.rs +++ b/src/platform_impl/linux/x11/ime/input_method.rs @@ -41,26 +41,36 @@ unsafe fn open_im(xconn: &Arc, locale_modifiers: &CStr) -> Option, + pub none_style: Option