Fix fading of minimized windows when deactivating the present windows effect.
svn path=/trunk/KDE/kdebase/workspace/; revision=871588
This commit is contained in:
parent
ae957480a0
commit
d2f83ab8f7
1 changed files with 2 additions and 2 deletions
|
@ -1143,9 +1143,9 @@ void PresentWindowsEffect::setActive( bool active )
|
|||
{
|
||||
// TODO: w->isOnCurrentDesktop(); doesn't seem to be updated immediately
|
||||
if( m_highlightedWindow )
|
||||
m_windowData[w].visible = ( w->desktop() == m_highlightedWindow->desktop() || w->isOnAllDesktops() );
|
||||
m_windowData[w].visible = ( w->desktop() == m_highlightedWindow->desktop() || w->isOnAllDesktops() ) && !w->isMinimized();
|
||||
else // Only called when cancelling the effect, so isOnCurrentDesktop() is fine
|
||||
m_windowData[w].visible = w->isOnCurrentDesktop();
|
||||
m_windowData[w].visible = w->isOnCurrentDesktop() && !w->isMinimized();
|
||||
}
|
||||
|
||||
// Move all windows back to their original position
|
||||
|
|
Loading…
Reference in a new issue