]> Pileus Git - wmpus/commitdiff
Fix deprecated warning XKeycodeToKeysym warning
authorAndy Spencer <andy753421@gmail.com>
Mon, 9 Jul 2012 04:54:50 +0000 (04:54 +0000)
committerAndy Spencer <andy753421@gmail.com>
Mon, 9 Jul 2012 04:54:50 +0000 (04:54 +0000)
sys-x11.c

index 24decf6182c6572047de71596c27b3cf7b36de9b..6bc3b019246ef6ceb55768b6bbb12133d9291ab8 100644 (file)
--- 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);
        }