]> git.sur5r.net Git - i3/i3/commitdiff
Grab keys with all permutations of lock and numlock
authorDeiz <silverwraithii@gmail.com>
Tue, 9 Oct 2012 17:26:33 +0000 (13:26 -0400)
committerMichael Stapelberg <michael@stapelberg.de>
Tue, 9 Oct 2012 19:15:06 +0000 (21:15 +0200)
This should prevent all cases of caps lock (or shift lock, on some
keyboards) from interfering with i3 key bindings.

src/config.c

index 9e47d74b70330670cc9f0c6747ef8fff97e0ff79..ce9adca500c2b423190d86f5f974b5dec0cc5c81 100644 (file)
@@ -46,6 +46,7 @@ static void grab_keycode_for_binding(xcb_connection_t *conn, Binding *bind, uint
     }
     GRAB_KEY(mods);
     GRAB_KEY(mods | xcb_numlock_mask);
+    GRAB_KEY(mods | XCB_MOD_MASK_LOCK);
     GRAB_KEY(mods | xcb_numlock_mask | XCB_MOD_MASK_LOCK);
 }