1
0
mirror of https://github.com/gryf/wmaker.git synced 2026-02-20 00:35:53 +01:00

WPrefs: use W_KeycodeToKeysym instead of XkbKeycodeToKeysym

This patch replaces XKeycodeToKeysym and XkbKeycodeToKeysym
in WPrefs by our own function W_KeycodeToKeysym.
This commit is contained in:
David Maciejak
2023-02-26 08:51:35 +08:00
committed by Carlos R. Mafra
parent 15d06ff064
commit bc56db0776
5 changed files with 5 additions and 18 deletions

View File

@@ -381,10 +381,7 @@ static void fillModifierPopUp(WMPopUpButton * pop)
if (mapping->modifiermap[idx] != 0) {
int l;
for (l = 0; l < 4; l++) {
if (xext_xkb_supported)
ksym = XkbKeycodeToKeysym(dpy, mapping->modifiermap[idx], 0, l);
else
ksym = XKeycodeToKeysym(dpy, mapping->modifiermap[idx], l);
ksym = W_KeycodeToKeysym(dpy, mapping->modifiermap[idx], l);
if (ksym != NoSymbol)
break;
}