diff options
author | Michael Cardell Widerkrantz <mc@hack.org> | 2011-02-19 02:06:15 +0100 |
---|---|---|
committer | Michael Cardell Widerkrantz <mc@hack.org> | 2011-02-19 02:06:15 +0100 |
commit | 054f27f72e89e0847f49a823e8edc749d165fae2 (patch) | |
tree | abeff06b37fb62c4ddcdaea4159d04690d7391a4 | |
parent | 68c1e9e6fcdbf71270eb9612650b4100f940f87d (diff) | |
download | mcwm-054f27f72e89e0847f49a823e8edc749d165fae2.zip |
Also grab all keys + SHIFTMOD.
-rw-r--r-- | mcwm.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1023,6 +1023,13 @@ int setupkeys(void) /* Grab this key. */ xcb_grab_key(conn, 1, screen->root, MODKEY, keys[i].keycode, XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC); + + /* + * XXX Also grab it's shifted counterpart. A bit ugly here + * because we grab all of them not just the ones we want. + */ + xcb_grab_key(conn, 1, screen->root, MODKEY | SHIFTMOD, keys[i].keycode, + XCB_GRAB_MODE_ASYNC, XCB_GRAB_MODE_ASYNC); } /* for */ /* Get rid of the key symbols table. */ |