Skip to content

Commit

Permalink
Fixed numlock and caps lock key grabs.
Browse files Browse the repository at this point in the history
  • Loading branch information
alisabedard committed Oct 9, 2020
1 parent 3203748 commit 68f446d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion wm.c
Original file line number Diff line number Diff line change
Expand Up @@ -465,9 +465,18 @@ int main(int const argc __attribute__((unused)),
/* Grab keys. */
xcb_grab_key(X, 1, Root, WM_MOD_MASK, XCB_GRAB_ANY, XCB_GRAB_MODE_ASYNC,
XCB_GRAB_MODE_ASYNC);
xcb_grab_key(X, 1, Root, WM_MOD_MASK | XCB_MOD_MASK_2, XCB_GRAB_ANY,
XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC);
xcb_grab_key(X, 1, Root, WM_MOD_MASK | XCB_MOD_MASK_SHIFT, XCB_GRAB_ANY,
XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC);

xcb_grab_key(X, 1, Root, WM_MOD_MASK | XCB_MOD_MASK_LOCK, XCB_GRAB_ANY,
XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC);
xcb_grab_key(X, 1, Root, WM_MOD_MASK | XCB_MOD_MASK_SHIFT | XCB_MOD_MASK_2,
XCB_GRAB_ANY, XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC);
xcb_grab_key(X, 1, Root, WM_MOD_MASK | XCB_MOD_MASK_SHIFT | XCB_MOD_MASK_2 |
XCB_MOD_MASK_LOCK, XCB_GRAB_ANY, XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC);
xcb_grab_key(X, 1, Root, WM_MOD_MASK | XCB_MOD_MASK_2 | XCB_MOD_MASK_LOCK,
XCB_GRAB_ANY, XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC);
xcb_flush(X);


Expand Down

0 comments on commit 68f446d

Please sign in to comment.