From: Deiz Date: Tue, 9 Oct 2012 17:26:33 +0000 (-0400) Subject: Grab keys with all permutations of lock and numlock X-Git-Tag: 4.4~58 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7a280f56916038722e471168eb593b02cb4d3441;hp=a06bf27c24b059fecf55f787f73fab63ed8c2209;p=i3%2Fi3 Grab keys with all permutations of lock and numlock This should prevent all cases of caps lock (or shift lock, on some keyboards) from interfering with i3 key bindings. --- diff --git a/src/config.c b/src/config.c index 9e47d74b..ce9adca5 100644 --- a/src/config.c +++ b/src/config.c @@ -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); }