Prevent window flash that sometimes occurs when a sliding popup window

is closed. Keeps the window transformed even in the last painting pass.

svn path=/trunk/KDE/kdebase/workspace/; revision=1030717
This commit is contained in:
Lucas Murray 2009-10-03 06:40:10 +00:00
parent b4938657b8
commit 53986fa859

View file

@ -66,18 +66,12 @@ void SlidingPopupsEffect::prePaintWindow( EffectWindow* w, WindowPrePaintData& d
}
else if( mDisappearingWindows.contains( w ) )
{
data.setTransformed();
w->enablePainting( EffectWindow::PAINT_DISABLED_BY_DELETE );
mDisappearingWindows[ w ].addTime( time );
if( mDisappearingWindows[ w ].value() < 1 )
{
data.setTransformed();
w->enablePainting( EffectWindow::PAINT_DISABLED_BY_DELETE );
}
else
{
mDisappearingWindows.remove( w );
if( mDisappearingWindows[ w ].value() >= 1 )
w->unrefWindow();
}
}
effects->prePaintWindow( w, data, time );
}