catch animation status one cycle earlier
svn path=/trunk/KDE/kdebase/workspace/; revision=1054162
This commit is contained in:
parent
4c392a844d
commit
14cb215e39
1 changed files with 6 additions and 5 deletions
|
@ -33,11 +33,6 @@ MinimizeAnimationEffect::MinimizeAnimationEffect()
|
|||
|
||||
void MinimizeAnimationEffect::prePaintScreen( ScreenPrePaintData& data, int time )
|
||||
{
|
||||
mActiveAnimations = mTimeLineWindows.count();
|
||||
if( mActiveAnimations > 0 )
|
||||
// We need to mark the screen windows as transformed. Otherwise the
|
||||
// whole screen won't be repainted, resulting in artefacts
|
||||
data.mask |= PAINT_SCREEN_WITH_TRANSFORMED_WINDOWS;
|
||||
|
||||
QHash< EffectWindow*, TimeLine >::iterator entry = mTimeLineWindows.begin();
|
||||
bool erase = false;
|
||||
|
@ -60,6 +55,12 @@ void MinimizeAnimationEffect::prePaintScreen( ScreenPrePaintData& data, int time
|
|||
++entry;
|
||||
}
|
||||
|
||||
mActiveAnimations = mTimeLineWindows.count();
|
||||
if( mActiveAnimations > 0 )
|
||||
// We need to mark the screen windows as transformed. Otherwise the
|
||||
// whole screen won't be repainted, resulting in artefacts
|
||||
data.mask |= PAINT_SCREEN_WITH_TRANSFORMED_WINDOWS;
|
||||
|
||||
effects->prePaintScreen(data, time);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue