Summary: | Block global shorcuts has broken | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Krister Bäckman <ixevix> |
Component: | general | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ixevix |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Krister Bäckman
2007-08-20 00:57:19 UTC
SVN commit 703895 by lunakl: No idea why I removed this in r603293. BUG: 149011 M +9 -0 events.cpp --- branches/KDE/3.5/kdebase/kwin/events.cpp #703894:703895 @@ -992,6 +992,15 @@ */ void Client::updateMouseGrab() { + if( workspace()->globalShortcutsDisabled()) + { + XUngrabButton( qt_xdisplay(), AnyButton, AnyModifier, wrapperId()); + // keep grab for the simple click without modifiers if needed (see below) + bool not_obscured = workspace()->topClientOnDesktop( workspace()->currentDesktop(), true, false ) == this; + if( !( !options->clickRaise || not_obscured )) + grabButton( None ); + return; + } if( isActive() && !workspace()->forcedGlobalMouseGrab()) // see Workspace::establishTabBoxGrab() { // remove the grab for no modifiers only if the window |