summaryrefslogtreecommitdiff
path: root/mcwm.c
diff options
context:
space:
mode:
authorMichael Cardell Widerkrantz <mc@hack.org>2011-02-19 02:06:15 +0100
committerMichael Cardell Widerkrantz <mc@hack.org>2011-02-19 02:06:15 +0100
commit054f27f72e89e0847f49a823e8edc749d165fae2 (patch)
treeabeff06b37fb62c4ddcdaea4159d04690d7391a4 /mcwm.c
parent68c1e9e6fcdbf71270eb9612650b4100f940f87d (diff)
downloadmcwm-054f27f72e89e0847f49a823e8edc749d165fae2.zip
Also grab all keys + SHIFTMOD.
Diffstat (limited to 'mcwm.c')
-rw-r--r--mcwm.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/mcwm.c b/mcwm.c
index 6b94d21..6f56783 100644
--- a/mcwm.c
+++ b/mcwm.c
@@ -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. */