No idea why I removed this in r659308.
BUG: 149011 svn path=/trunk/KDE/kdebase/workspace/; revision=703896
This commit is contained in:
parent
c6b791dfda
commit
51e7514b11
1 changed files with 9 additions and 0 deletions
|
@ -1051,6 +1051,15 @@ void Client::ungrabButton( int modifier )
|
||||||
*/
|
*/
|
||||||
void Client::updateMouseGrab()
|
void Client::updateMouseGrab()
|
||||||
{
|
{
|
||||||
|
if( workspace()->globalShortcutsDisabled())
|
||||||
|
{
|
||||||
|
XUngrabButton( display(), 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()
|
if( isActive() && !workspace()->forcedGlobalMouseGrab()) // see Workspace::establishTabBoxGrab()
|
||||||
{
|
{
|
||||||
// remove the grab for no modifiers only if the window
|
// remove the grab for no modifiers only if the window
|
||||||
|
|
Loading…
Reference in a new issue