mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-28 13:25:54 +01:00
WPrefs: XKeycodeToKeysym deprecated function
The function XKeycodeToKeysym is deprecated and should be replaced by XkbKeycodeToKeysym.
This commit is contained in:
committed by
Carlos R. Mafra
parent
139f912e61
commit
43c3526d21
@@ -23,6 +23,7 @@
|
||||
#include "WPrefs.h"
|
||||
|
||||
#include <X11/Xutil.h>
|
||||
#include <X11/XKBlib.h>
|
||||
|
||||
#include <unistd.h>
|
||||
#include <math.h>
|
||||
@@ -361,7 +362,7 @@ static void fillModifierPopUp(WMPopUpButton * pop)
|
||||
if (mapping->modifiermap[idx] != 0) {
|
||||
int l;
|
||||
for (l = 0; l < 4; l++) {
|
||||
ksym = XKeycodeToKeysym(dpy, mapping->modifiermap[idx], l);
|
||||
ksym = XkbKeycodeToKeysym(dpy, mapping->modifiermap[idx], 0, l);
|
||||
if (ksym != NoSymbol)
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user