From 054f27f72e89e0847f49a823e8edc749d165fae2 Mon Sep 17 00:00:00 2001 From: Michael Cardell Widerkrantz Date: Sat, 19 Feb 2011 02:06:15 +0100 Subject: Also grab all keys + SHIFTMOD. --- mcwm.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'mcwm.c') 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. */ -- cgit v1.2.3