From 7a280f56916038722e471168eb593b02cb4d3441 Mon Sep 17 00:00:00 2001 From: Deiz Date: Tue, 9 Oct 2012 13:26:33 -0400 Subject: [PATCH] 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. --- src/config.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.39.5