enable the animation also when the fade effect is disabled
svn path=/trunk/KDE/kdebase/workspace/; revision=1002996
This commit is contained in:
parent
51c9a0bf54
commit
ffa58ea60d
1 changed files with 5 additions and 1 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue