compile fix
authoranselm@garbe.us <unknown>
Sat, 17 Nov 2012 18:12:10 +0000 (19:12 +0100)
committeranselm@garbe.us <unknown>
Sat, 17 Nov 2012 18:12:10 +0000 (19:12 +0100)
dwm.c

diff --git a/dwm.c b/dwm.c
index 32b7b61..7bab478 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -1069,7 +1069,7 @@ keypress(XEvent *e) {
        XKeyEvent *ev;
 
        ev = &e->xkey;
-       if(usexkb) {
+       if(usexkb)
                keysym = XkbKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0, 0);
        else
                keysym = XKeycodeToKeysym(dpy, (KeyCode)ev->keycode, 0);
@@ -1636,7 +1636,7 @@ setup(void) {
        XChangeWindowAttributes(dpy, root, CWEventMask|CWCursor, &wa);
        XSelectInput(dpy, root, wa.event_mask);
        /* init xkb */
-       usexkb = XkbQueryExtension(dpy, &dummy, &dummy, &dummy, &xkb_major, &xkb_minor);
+       usexkb = XkbQueryExtension(dpy, &dummy, &dummy, &dummy, &xkbmajor, &xkbminor);
        grabkeys();
 }