convert from deprecated XKeycodeToKeysym to XkbKeycodeToKeysym

ok sthen@
This commit is contained in:
okan
2012-05-16 01:04:36 +00:00
parent 57766d8606
commit dd5bfdb064
4 changed files with 9 additions and 8 deletions

2
menu.c
View File

@ -466,7 +466,7 @@ menu_keycode(KeyCode kc, u_int state, enum ctltype *ctl, char *chr)
*ctl = CTL_NONE;
*chr = '\0';
ks = XKeycodeToKeysym(X_Dpy, kc, (state & ShiftMask) ? 1 : 0);
ks = XkbKeycodeToKeysym(X_Dpy, kc, 0, (state & ShiftMask) ? 1 : 0);
/* Look for control characters. */
switch (ks) {