From bed3cb7a30e5bc3e75bf624dafc2d7d94714ae2f Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 24 Jan 2008 20:19:33 -0500 Subject: [PATCH] strip non-modifier masks from the keyboard state for keyreleases when xkb is present too --- openbox/event.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openbox/event.c b/openbox/event.c index 025f118..fba5e86 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 { -- 1.9.1