From: Dana Jansens Date: Fri, 25 Jan 2008 01:19:33 +0000 (-0500) Subject: strip non-modifier masks from the keyboard state for keyreleases when xkb is present too X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=bed3cb7a30e5bc3e75bf624dafc2d7d94714ae2f;p=chaz%2Fopenbox strip non-modifier masks from the keyboard state for keyreleases when xkb is present too --- 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 {