Turn unredirect off when fullscreen is not on the active virtual desktop.

svn path=/trunk/KDE/kdebase/workspace/; revision=863950
This commit is contained in:
Luboš Luňák 2008-09-23 15:44:54 +00:00
parent f8163eac9d
commit bd589d3adf
2 changed files with 2 additions and 1 deletions

View file

@ -884,6 +884,7 @@ void Client::setActive( bool act )
decoration->activeChange();
updateMouseGrab();
updateUrgency(); // demand attention again if it's still urgent
workspace()->checkUnredirect();
}
void Client::startupIdChanged()

View file

@ -850,7 +850,7 @@ bool Client::isActiveFullScreen() const
// only raise fullscreen above docks if it's the topmost window in unconstrained stacking order,
// i.e. the window set to be topmost by the user (also includes transients of the fullscreen window)
const Client* ac = workspace()->mostRecentlyActivatedClient(); // instead of activeClient() - avoids flicker
const Client* top = workspace()->topClientOnDesktop( desktop(), screen(), true, false );
const Client* top = workspace()->topClientOnDesktop( workspace()->currentDesktop(), screen(), true, false );
return( isFullScreen() && ac != NULL && top != NULL
// not needed, for xinerama && ( ac == this || this->group() == ac->group())
&& ( top == this || this->group() == top->group()));