Revert "Convert uses of XKeycodeToKeysym (deprecated) to XkbKeycodeToKeysym"

This reverts commit 15a2032626.

This is wrong - it is missing the proper include file, and the
new function takes 4 arguments not 3.
This commit is contained in:
Jon Trulson
2021-07-04 13:00:51 -06:00
parent 3bc4132f9a
commit ac8bd41373
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 = XkbKeycodeToKeysym(dpy, pMap->modifiermap[mapIndex], keyCol);
keySym = XKeycodeToKeysym(dpy, pMap->modifiermap[mapIndex], keyCol);
if (keySym == XK_Mode_switch)
modeSwitchModMask |= 1 << (mapIndex / pMap->max_keypermod);
}