X-Git-Url: http://pileus.org/git/?p=wmpus;a=blobdiff_plain;f=sys-x11.c;h=6bc3b019246ef6ceb55768b6bbb12133d9291ab8;hp=24decf6182c6572047de71596c27b3cf7b36de9b;hb=a7cbcfd5a5e2ded8cfc04ef6679acc8c3e227da7;hpb=7ae4e2aca3b27fbd825a35f721b8456f0434621a diff --git a/sys-x11.c b/sys-x11.c index 24decf6..6bc3b01 100644 --- a/sys-x11.c +++ b/sys-x11.c @@ -356,7 +356,7 @@ static void process_event(int type, XEvent *xe, win_t *root) /* Split based on event */ if (type == KeyPress) { while (XCheckTypedEvent(dpy, KeyPress, xe)); - KeySym sym = XKeycodeToKeysym(dpy, xe->xkey.keycode, 0); + KeySym sym = XLookupKeysym(&xe->xkey, 0); printf("got xe %c %hhx\n", xk2ev(sym), mod2int(mod)); wm_handle_event(win, xk2ev(sym), mod, ptr); }