Correctly reference closed windows in the snap helper effect.

BUG: 201696

svn path=/trunk/KDE/kdebase/workspace/; revision=1003327
This commit is contained in:
Lucas Murray 2009-07-28 02:22:32 +00:00
parent d32d9c4876
commit 9f02ea9b3a

View file

@ -163,13 +163,20 @@ void SnapHelperEffect::postPaintScreen()
}*/
}
else if( m_window )
{
if( m_window->isDeleted() )
m_window->unrefWindow();
m_window = NULL;
}
}
void SnapHelperEffect::windowClosed( EffectWindow* w )
{
if( m_window == w )
{
m_window->refWindow();
m_active = false;
}
}
void SnapHelperEffect::windowUserMovedResized( EffectWindow* w, bool first, bool last )