]> Dogcows Code - chaz/openbox/commitdiff
strip non-modifier masks from the keyboard state for keyreleases when xkb is present too
authorDana Jansens <danakj@orodu.net>
Fri, 25 Jan 2008 01:19:33 +0000 (20:19 -0500)
committerDana Jansens <danakj@orodu.net>
Fri, 25 Jan 2008 01:19:33 +0000 (20:19 -0500)
openbox/event.c

index 025f1188fa2006fb23cad079c777b0b58f76ccd9..fba5e86d8e7491b98aea4fa3b80c3b62cc9a0abe 100644 (file)
@@ -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
         {
This page took 0.022704 seconds and 4 git commands to generate.