From ccddaf0650e2370ff5ae9f9013085ed7abd359e8 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 | 58 +++++++++++-------- src/platform_impl/linux/x11/ime/mod.rs | 8 ++- 3 files changed, 41 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..00ceb679983 100644 --- a/src/platform_impl/linux/x11/ime/input_method.rs +++ b/src/platform_impl/linux/x11/ime/input_method.rs @@ -41,62 +41,70 @@ unsafe fn open_im(xconn: &Arc, locale_modifiers: &CStr) -> Option, + pub none_style: Option