Correctly reference closed windows in the snap helper effect.

BUG: 201696

svn path=/trunk/KDE/kdebase/workspace/; revision=1003327
icc-effect-5.14.5
Lucas Murray 2009-07-28 02:22:32 +00:00
parent d32d9c4876
commit 9f02ea9b3a
1 changed files with 7 additions and 0 deletions

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 )