Convert uses of XKeycodeToKeysym (deprecated) to XkbKeycodeToKeysym

patch supplied from Peter G.
This commit is contained in:
Jon Trulson
2020-03-23 12:51:18 -06:00
parent 6f1a110e1d
commit 15a2032626
6 changed files with 9 additions and 9 deletions

View File

@@ -3736,7 +3736,7 @@ GetModeSwitchModifier(
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);
}