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.
This commit is contained in:
Deiz 2012-10-09 13:26:33 -04:00 committed by Michael Stapelberg
parent a06bf27c24
commit 7a280f5691
1 changed files with 1 additions and 0 deletions

View 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);
}