Alexandre Goujon ale.goujon@gmail.com wrote:
if (!(keysym = XKeycodeToKeysym (display, keyc, i))) continue;
if (!(keysym = XkbKeycodeToKeysym (display, keyc, 0, i))) continue;
Not every X11 implementation has the XKB extenstion. You may want to take into account 'use_xkb' and 'HAVE_XKB'.