From 471861c4d501df6d941bd7431918cf181d506e15 Mon Sep 17 00:00:00 2001 From: Antti K Date: Tue, 29 Jul 2014 17:50:26 +0200 Subject: Replace deprecated XKeycodeToKeysym ...with XKB's equivalent. `-Wall` without warnings, yey. --- xkbcat.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xkbcat.c b/xkbcat.c index c09bec3..17b4ecc 100644 --- a/xkbcat.c +++ b/xkbcat.c @@ -15,6 +15,7 @@ #include #include +#include #include #include @@ -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 */ -- cgit v1.3-2-g0d8e