Also fadein/out windows that are mimizied and live under the taskbar when

starting and stopping the Coverswitch effect.

svn path=/trunk/KDE/kdebase/workspace/; revision=805261
This commit is contained in:
Sebastian Kügler 2008-05-08 00:18:10 +00:00
parent e3040b1938
commit 874ec72298

View file

@ -536,7 +536,7 @@ void CoverSwitchEffect::paintWindow( EffectWindow* w, int mask, QRegion region,
{ {
if( mActivated || stop || stopRequested ) if( mActivated || stop || stopRequested )
{ {
if( !( mask & PAINT_WINDOW_TRANSFORMED ) && ( !w->isDesktop() ) ) if( !( mask & PAINT_WINDOW_TRANSFORMED ) && !w->isDesktop() )
{ {
if( ( start || stop ) && w->isDock() ) if( ( start || stop ) && w->isDock() )
{ {
@ -548,7 +548,7 @@ void CoverSwitchEffect::paintWindow( EffectWindow* w, int mask, QRegion region,
return; return;
} }
} }
if ( ( start || stop ) && !w->isOnCurrentDesktop() ) if ( ( start || stop ) && (!w->isOnCurrentDesktop() || w->isMinimized() ) )
{ {
if (stop) // Fade out windows not on the current desktop if (stop) // Fade out windows not on the current desktop
data.opacity = (1.0 - timeLine.value()); data.opacity = (1.0 - timeLine.value());