Skip to content

Commit

Permalink
XKeycodeToKeysym → XkbKeycodeToKeysym.
Browse files Browse the repository at this point in the history
  • Loading branch information
JNRowe committed Jan 16, 2013
1 parent b053af9 commit 4062d32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dwm.c
Expand Up @@ -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 */
Expand Down Expand Up @@ -1420,7 +1421,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)
Expand Down

0 comments on commit 4062d32

Please sign in to comment.