|
|
|
@ -97,6 +97,23 @@ static uint_fast32_t ConvertKeySym (xcb_keysym_t sym) |
|
|
|
if (sym >= 0x1000100 && sym <= 0x110ffff) |
|
|
|
return sym - 0x1000000; |
|
|
|
|
|
|
|
#if 0 |
|
|
|
for (size_t i = 0; i < sizeof (tab) / sizeof (tab[0]); i++) |
|
|
|
if (i > 0 && tab[i-1].x11 >= tab[i].x11) |
|
|
|
{ |
|
|
|
fprintf (stderr, "key %x and %x are not ordered properly\n", |
|
|
|
tab[i-1].x11, tab[i].x11); |
|
|
|
abort (); |
|
|
|
} |
|
|
|
for (size_t i = 0; i < sizeof (old) / sizeof (old[0]); i++) |
|
|
|
if (i > 0 && old[i-1].x11 >= old[i].x11) |
|
|
|
{ |
|
|
|
fprintf (stderr, "key %x and %x are not ordered properly\n", |
|
|
|
old[i-1].x11, old[i].x11); |
|
|
|
abort (); |
|
|
|
} |
|
|
|
#endif |
|
|
|
|
|
|
|
/* Special keys */ |
|
|
|
res = bsearch (&sym, tab, sizeof (tab) / sizeof (tab[0]), sizeof (tab[0]), |
|
|
|
keysymcmp); |
|
|
|
|