summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--xkbcat.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xkbcat.c b/xkbcat.c
index c09bec3..17b4ecc 100644
--- a/xkbcat.c
+++ b/xkbcat.c
@@ -15,6 +15,7 @@
#include <X11/Xlib.h>
#include <X11/X.h>
+#include <X11/XKBlib.h>
#include <string.h>
#include <stdio.h>
@@ -110,7 +111,7 @@ int main(int argc, char *argv[]) {
char *KeyCodeToStr(int code, int down) {
static char *str, buf[KEYSYM_STRLEN + 1];
- KeySym keysym = XKeycodeToKeysym(disp, code, 0);
+ KeySym keysym = XkbKeycodeToKeysym(disp, code, 0, 0);
if (NoSymbol == keysym) return "";
/* convert keysym to a string, copy it to a local area */