Coverswitch: Fade windows not on the current desktop in and out

when the effect is started and stopped.

svn path=/trunk/KDE/kdebase/workspace/; revision=802483
This commit is contained in:
Sebastian Kügler 2008-04-29 16:20:06 +00:00
parent 4f9cb481c2
commit d35fe96770

View file

@ -548,6 +548,13 @@ void CoverSwitchEffect::paintWindow( EffectWindow* w, int mask, QRegion region,
return; return;
} }
} }
if ( ( start || stop ) && !w->isOnCurrentDesktop() )
{
if (stop) // Fade out windows not on the current desktop
data.opacity = (1.0 - timeLine.value());
else // Fade in Windows from other desktops when animation is started
data.opacity = timeLine.value();
}
effects->paintWindow( w, mask, region, data ); effects->paintWindow( w, mask, region, data );
} }