diff options
author | anselm@garbe.us <unknown> | 2012-06-23 20:12:49 +0200 |
---|---|---|
committer | anselm@garbe.us <unknown> | 2012-06-23 20:12:49 +0200 |
commit | 606b44179dfeec8d31930488aa91c8d4808235a7 (patch) | |
tree | 6c8a8704b15f0ffcc64378a7a7fb9ecedaaf20a2 | |
parent | 20f6917910306bcb5275d726b01b42a3b5e868b4 (diff) | |
download | dwm-606b44179dfeec8d31930488aa91c8d4808235a7.tar.gz |
applied James Turner's XkbKeycodeToKeysym patch, thanks
-rw-r--r-- | dwm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c index 1d79af6..6b39519 100644 --- a/dwm.c +++ b/dwm.c @@ -36,6 +36,7 @@ #include <X11/Xlib.h> #include <X11/Xproto.h> #include <X11/Xutil.h> +#include <X11/XKBlib.h> #ifdef XINERAMA #include <X11/extensions/Xinerama.h> #endif /* XINERAMA */ @@ -1085,7 +1086,7 @@ keypress(XEvent *e) { XKeyEvent *ev; ev = &e->xkey; - 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) |