enable the animation also when the fade effect is disabled

svn path=/trunk/KDE/kdebase/workspace/; revision=1002996
This commit is contained in:
Marco Martin 2009-07-27 13:27:16 +00:00
parent 51c9a0bf54
commit ffa58ea60d

View file

@ -61,9 +61,13 @@ void SlidingPopupsEffect::prePaintWindow( EffectWindow* w, WindowPrePaintData& d
}
else if( mDisappearingWindows.contains( w ) )
{
mDisappearingWindows[ w ].addTime( time );
if( mDisappearingWindows[ w ].value() < 1 )
{
data.setTransformed();
w->enablePainting( EffectWindow::PAINT_DISABLED_BY_DELETE );
}
else
{
mDisappearingWindows.remove( w );
@ -90,7 +94,6 @@ void SlidingPopupsEffect::paintWindow( EffectWindow* w, int mask, QRegion region
animating = true;
}
if( animating )
{
const qreal progress = appearing?(1 - mAppearingWindows[ w ].value()):mDisappearingWindows[ w ].value();
@ -168,6 +171,7 @@ void SlidingPopupsEffect::propertyNotify( EffectWindow* w, long a )
return;
QByteArray data = w->readProperty( mAtom, mAtom, 32 );
if( data.length() < 1 )
return;
long* d = reinterpret_cast< long* >( data.data());