patch supplied from Peter G.
for (mapIndex = 3*pMap->max_keypermod; mapIndex < mapSize; mapIndex++) {
/* look only at the first 4 columns of key map */
for (keyCol = 0; keyCol < 4; keyCol++) {
- keySym = XKeycodeToKeysym(dpy, pMap->modifiermap[mapIndex], keyCol);
+ keySym = XkbKeycodeToKeysym(dpy, pMap->modifiermap[mapIndex], keyCol);
if (keySym == XK_Mode_switch)
modeSwitchModMask |= 1 << (mapIndex / pMap->max_keypermod);
}
X->kparray[i - X->kcmin] = 0 ;
for (j = 0; j < X->keysyms_per_key; ++j)
{
- ks = XKeycodeToKeysym(X->dpy, i, j) ;
+ ks = XkbKeycodeToKeysym(X->dpy, i, j) ;
if (IsKeypadKey(ks))
{
X->kparray[i - X->kcmin] = 1 ;
for (i = 0; i < X->keysyms_per_key; ++i)
{
- ks = XKeycodeToKeysym(X->dpy, keycode, i) ;
+ ks = XkbKeycodeToKeysym(X->dpy, keycode, i) ;
if (IsKeypadKey(ks))
{
#ifdef sun
return(-1);
}
}
- tmpMod = XKeycodeToKeysym(smGD.display, modMap->modifiermap[i], 0);
+ tmpMod = XkbKeycodeToKeysym(smGD.display, modMap->modifiermap[i], 0, 0);
sprintf(tmpChar,"%ld", tmpMod);
strcat(resSpec, tmpChar);
if(i != numLoops)
}
/* convert event data to useful key data */
- keysym = XKeycodeToKeysym (DISPLAY, pev->keycode, 0);
+ keysym = XkbKeycodeToKeysym (DISPLAY, pev->keycode, 0, 0);
control = (pev->state & ControlMask) != 0;
big_inc = DisplayWidth(DISPLAY, ACTIVE_PSD->screen) / 20;
{
if (map->modifiermap[k])
{
- KeySym ks = XKeycodeToKeysym(DISPLAY, map->modifiermap[k], 0);
+ KeySym ks = XkbKeycodeToKeysym(DISPLAY, map->modifiermap[k], 0, 0);
char *nm = XKeysymToString(ks);
/* Compare, ignoring the trailing '_L' or '_R' in keysym */
keyMultiplier++;
}
- keysym = XKeycodeToKeysym (DISPLAY, pev->xkey.keycode, 0);
+ keysym = XkbKeycodeToKeysym (DISPLAY, pev->xkey.keycode, 0, 0);
control = (pev->xkey.state & ControlMask) != 0;
tmpX = tmpY = 0;
keyMult++;
}
- keysym = XKeycodeToKeysym (DISPLAY, pev->xkey.keycode, 0);
+ keysym = XkbKeycodeToKeysym (DISPLAY, pev->xkey.keycode, 0, 0);
control = (pev->xkey.state & ControlMask) != 0;
switch (keysym) {
keyMult++;
}
- keysym = XKeycodeToKeysym (DISPLAY, pev->xkey.keycode, 0);
+ keysym = XkbKeycodeToKeysym (DISPLAY, pev->xkey.keycode, 0);
control = (pev->xkey.state & ControlMask) != 0;
switch (keysym) {