aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Lohmann <20h@r-36.net>2012-07-07 22:50:26 +0200
committerChristoph Lohmann <20h@r-36.net>2012-07-07 22:50:26 +0200
commite3080747c51ac1912e3fae7a45a97bd021b61daa (patch)
treefcebcc5c1089e4bd011adc599c7ba383ebb1c609
parentcd09ae2592637e42d4ba0594303f129b3b0b18a1 (diff)
Removing the warning about »XKeycodeToKeysym.
-rw-r--r--tabbed.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tabbed.c b/tabbed.c
index a1dc47c..7f4d9d9 100644
--- a/tabbed.c
+++ b/tabbed.c
@@ -14,6 +14,7 @@
#include <X11/Xlib.h>
#include <X11/Xproto.h>
#include <X11/Xutil.h>
+#include <X11/XKBlib.h>
#include "arg.h"
@@ -542,7 +543,7 @@ keypress(const XEvent *e) {
unsigned int i;
KeySym keysym;
- keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
+ keysym = XkbKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0, 0);
for(i = 0; i < LENGTH(keys); i++)
if(keysym == keys[i].keysym
&& CLEANMASK(keys[i].mod) == CLEANMASK(ev->state)