summaryrefslogtreecommitdiff
path: root/openbox/event.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2008-01-24 20:19:33 -0500
committerDana Jansens <danakj@orodu.net>2008-01-24 20:19:33 -0500
commitbed3cb7a30e5bc3e75bf624dafc2d7d94714ae2f (patch)
tree9871f7f74242768aea7f03b3ba24b0bbcfbbdb67 /openbox/event.c
parentea07bf7131a301130beb348359d10a624a2046a0 (diff)
strip non-modifier masks from the keyboard state for keyreleases when xkb is present too
Diffstat (limited to 'openbox/event.c')
-rw-r--r--openbox/event.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbox/event.c b/openbox/event.c
index 025f1188..fba5e86d 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -270,7 +270,8 @@ static void event_hack_mods(XEvent *e)
magic. Our X core protocol stuff won't work, so we use this to
find what the modifier state is instead. */
if (XkbGetState(ob_display, XkbUseCoreKbd, &xkb_state) == Success)
- e->xkey.state = xkb_state.compat_state;
+ e->xkey.state =
+ modkeys_only_modifier_masks(xkb_state.compat_state);
else
#endif
{