Correctly reference closed windows in the snap helper effect.
BUG: 201696 svn path=/trunk/KDE/kdebase/workspace/; revision=1003327
This commit is contained in:
parent
d32d9c4876
commit
9f02ea9b3a
1 changed files with 7 additions and 0 deletions
|
@ -163,13 +163,20 @@ void SnapHelperEffect::postPaintScreen()
|
||||||
}*/
|
}*/
|
||||||
}
|
}
|
||||||
else if( m_window )
|
else if( m_window )
|
||||||
|
{
|
||||||
|
if( m_window->isDeleted() )
|
||||||
|
m_window->unrefWindow();
|
||||||
m_window = NULL;
|
m_window = NULL;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SnapHelperEffect::windowClosed( EffectWindow* w )
|
void SnapHelperEffect::windowClosed( EffectWindow* w )
|
||||||
{
|
{
|
||||||
if( m_window == w )
|
if( m_window == w )
|
||||||
|
{
|
||||||
|
m_window->refWindow();
|
||||||
m_active = false;
|
m_active = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void SnapHelperEffect::windowUserMovedResized( EffectWindow* w, bool first, bool last )
|
void SnapHelperEffect::windowUserMovedResized( EffectWindow* w, bool first, bool last )
|
||||||
|
|
Loading…
Reference in a new issue