Ensure there is another repaint when wobbly windows ends.

BUG: 201244

svn path=/trunk/KDE/kdebase/workspace/; revision=1004451
This commit is contained in:
Martin Gräßlin 2009-07-30 08:14:08 +00:00
parent 8981223956
commit a305bb915f

View file

@ -516,6 +516,8 @@ void WobblyWindowsEffect::windowClosed(EffectWindow* w)
{ {
freeWobblyInfo(wwi); freeWobblyInfo(wwi);
windows.remove(w); windows.remove(w);
if( windows.isEmpty() )
effects->addRepaintFull();
} }
} }
else if (m_closeEffectEnabled) else if (m_closeEffectEnabled)
@ -1172,6 +1174,8 @@ bool WobblyWindowsEffect::updateWindowWobblyDatas(EffectWindow* w, qreal time)
} }
freeWobblyInfo(wwi); freeWobblyInfo(wwi);
windows.remove(w); windows.remove(w);
if( windows.isEmpty() )
effects->addRepaintFull();
return false; return false;
} }