Try XOpenIM with different locale modifiers (#424)

* Try XOpenIM with different locale modifiers

Implements the solution suggested in
https://github.com/tomaka/winit/issues/277#issuecomment-337751136.

* Use empty XSetLocaleModifiers beforehand

Also, for modifiers, convert from length-based UTF-8 strings to
null-terminated bytestrings.

* Add CHANGELOG entry and comments
This commit is contained in:
hcpl 2018-04-05 20:21:50 +03:00 committed by Francesca Frangipane
parent f3ab8af813
commit 7cd440135a
2 changed files with 26 additions and 1 deletions

View file

@ -2,6 +2,7 @@
- Added subclass to macos windows so they can be made resizable even with no decorations.
- Dead keys now work properly on X11, no longer resulting in a panic.
- On X11, input method creation first tries to use the value from the user's `XMODIFIERS` environment variable, so application developers should no longer need to manually call `XSetLocaleModifiers`. If that fails, fallbacks are tried, which should prevent input method initialization from ever outright failing.
# Version 0.11.3 (2018-03-28)