Replace deprecated XKeycodeToKeysym() with XkbKeycodeToKeysym()

This commit is contained in:
David Coppa 2012-05-30 11:11:08 +02:00 committed by Michael Stapelberg
parent 24b1fcfd1a
commit 7a67938f3c

View File

@ -13,6 +13,7 @@
#include <string.h>
#include <X11/Xlib.h>
#include <X11/XKBlib.h>
#include "libi3.h"
@ -139,7 +140,7 @@ bindcode:
* more likely for special characters). */
level = 1;
}
KeySym sym = XKeycodeToKeysym(dpy, $4, level);
KeySym sym = XkbKeycodeToKeysym(dpy, $4, 0, level);
char *str = XKeysymToString(sym);
char *modifiers = modifier_to_string($<number>3);
// TODO: modifier to string