Commit 4090e067 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

XCB/window: Unicode non-Latin-1 keys (untested)

This is incomplete. X11 defined a whole set of non-Latin-1 key symbols
before ISO 10646. Only the key symbols defined later match Unicode (with
the 0x1000000 offset).
parent 54371a95
......@@ -178,6 +178,9 @@ static uint_fast32_t ConvertKeySym (xcb_keysym_t sym)
/* X11 Latin-1 range */
if (sym <= 0xff)
return sym;
/* X11 Unicode range */
if (sym >= 0x1000100 && sym <= 0x110ffff)
return sym - 0x1000000;
/* Special keys */
res = bsearch (&sym, tab, sizeof (tab) / sizeof (tab[0]), sizeof (tab[0]),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment