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:
parent
b4938657b8
commit
53986fa859
1 changed files with 3 additions and 9 deletions
|
@ -66,19 +66,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 );
|
||||
|
||||
mDisappearingWindows[ w ].addTime( time );
|
||||
if( mDisappearingWindows[ w ].value() >= 1 )
|
||||
w->unrefWindow();
|
||||
}
|
||||
}
|
||||
effects->prePaintWindow( w, data, time );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue