Skip to content

boFix X11 Unicode typing, Pillow bound, and security contact - #3

Open
wachawo wants to merge 1 commit into
rylena:mainfrom
wachawo:fix-x11-unicode-pillow-contact
Open

boFix X11 Unicode typing, Pillow bound, and security contact#3
wachawo wants to merge 1 commit into
rylena:mainfrom
wachawo:fix-x11-unicode-pillow-contact

Conversation

@wachawo

@wachawo wachawo commented Sep 6, 2026

Copy link
Copy Markdown

The X11 input backend fell back to ord(character) as a keysym for anything XK.string_to_keysym did not know, which is only valid for Latin-1. Cyrillic, CJK, and most symbols therefore mapped into unrelated keysym ranges and were dropped or typed as the wrong key. Use the 0x01000000 Unicode keysym namespace instead and, when the active layout has no keycode for the keysym, bind an unused keycode for the session and unbind it on close, the same approach xdotool takes.

Raise the Pillow requirement to 9.1, the first release that ships the Image.Resampling, Image.Quantize, and Image.Dither enums used by the capture and render modules.

The X11 input backend fell back to ord(character) as a keysym for anything
XK.string_to_keysym did not know, which is only valid for Latin-1. Cyrillic,
CJK, and most symbols therefore mapped into unrelated keysym ranges and were
dropped or typed as the wrong key. Use the 0x01000000 Unicode keysym
namespace instead and, when the active layout has no keycode for the keysym,
bind an unused keycode for the session and unbind it on close, the same
approach xdotool takes.

Raise the Pillow requirement to 9.1, the first release that ships the
Image.Resampling, Image.Quantize, and Image.Dither enums used by the capture
and render modules.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant