No idea why I removed this in r659308.

BUG: 149011


svn path=/trunk/KDE/kdebase/workspace/; revision=703896
This commit is contained in:
Luboš Luňák 2007-08-23 15:08:39 +00:00
parent c6b791dfda
commit 51e7514b11

View file

@ -1051,6 +1051,15 @@ void Client::ungrabButton( int modifier )
*/
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()
{
// remove the grab for no modifiers only if the window