Comment 25 for bug 953089

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Unity 5.6: key bindings (such as Super) don't work on empty workspace

Could someone who can reproduce this bug, and can compile their own code, please try removing this from fix_alt_pressing.patch in compiz?

@@ -1907,6 +1918,14 @@
        break;
     case FocusIn:
     {
+ /* When a menu etc gets a grab, it's safe to say we're not tapping
+ any key right now. e.g. Detecting taps of "Alt" and cancelling
+ when a menu is opened */
+ if (event->xfocus.mode == NotifyGrab &&
+ event->xfocus.window != priv->root &&
+ event->xfocus.window != priv->grabWindow)
+ priv->possibleTap = NULL;
+
        if (!XGetWindowAttributes (priv->dpy, event->xfocus.window, &wa))
            priv->setDefaultWindowAttributes (&wa);