catch animation status one cycle earlier

svn path=/trunk/KDE/kdebase/workspace/; revision=1054162
This commit is contained in:
Thomas Lübking 2009-11-25 17:48:01 +00:00
parent 4c392a844d
commit 14cb215e39

View file

@ -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);
}