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:
parent
4f9cb481c2
commit
d35fe96770
1 changed files with 13 additions and 6 deletions
|
@ -548,6 +548,13 @@ void CoverSwitchEffect::paintWindow( EffectWindow* w, int mask, QRegion region,
|
|||
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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue