event: get keysym ignoring all modifiers

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-04-28 17:26:15 +02:00
parent 3eb14d7c76
commit ca7af35f8a
1 changed files with 2 additions and 4 deletions

View File

@ -608,10 +608,8 @@ event_handle_key(void *data __attribute__ ((unused)),
} }
else else
{ {
/* get keysym ignoring shift and mod5 */ /* get keysym ignoring all modifiers */
xcb_keysym_t keysym = xcb_keysym_t keysym = key_getkeysym(ev->detail, 0);
key_getkeysym(ev->detail,
ev->state & ~(XCB_MOD_MASK_SHIFT | XCB_MOD_MASK_5 | XCB_MOD_MASK_LOCK));
client_t *c; client_t *c;
if((c = client_getbywin(ev->event))) if((c = client_getbywin(ev->event)))
{ {