Don't wobbly when another effect is handling opening/closing of windows.

svn path=/trunk/KDE/kdebase/workspace/; revision=1159181
This commit is contained in:
Martin Gräßlin 2010-08-04 16:59:55 +00:00
parent 6ad3754de0
commit f5fde6c8d2

View file

@ -493,7 +493,7 @@ void WobblyWindowsEffect::stepMovedResized(EffectWindow* w)
void WobblyWindowsEffect::windowAdded(EffectWindow* w) void WobblyWindowsEffect::windowAdded(EffectWindow* w)
{ {
if (m_openEffectEnabled) if (m_openEffectEnabled && w->data( WindowAddedGrabRole ).value<void*>() != this)
{ {
if(windows.contains(w)) if(windows.contains(w))
{ {
@ -529,7 +529,7 @@ void WobblyWindowsEffect::windowClosed(EffectWindow* w)
effects->addRepaintFull(); effects->addRepaintFull();
} }
} }
else if (m_closeEffectEnabled) else if (m_closeEffectEnabled && w->data( WindowAddedGrabRole ).value<void*>() != this)
{ {
WindowWobblyInfos new_wwi; WindowWobblyInfos new_wwi;
initWobblyInfo(new_wwi, w->geometry()); initWobblyInfo(new_wwi, w->geometry());