End PresentWindows effect after last window closed

Thanks to Marus Hähnel for this contribution to KDE.
CCMAIL: marcus@mh-development.info
FEATURE: 262540
FIXED-IN: 4.7.0
REVIEW: 100627
This commit is contained in:
Martin Gräßlin 2011-03-06 19:08:14 +01:00
parent 5d5cf7c1dd
commit 3529c34934

View file

@ -400,6 +400,13 @@ void PresentWindowsEffect::windowClosed(EffectWindow *w)
return; // don't rearrange
}
rearrangeWindows();
foreach (EffectWindow * w, m_motionManager.managedWindows()) {
DataHash::iterator winData = m_windowData.find( w );
if (winData != m_windowData.end() && !winData->deleted)
return; // found one that is not deleted? then we go on
}
setActive(false); //else no need to keep this open
}
void PresentWindowsEffect::windowDeleted(EffectWindow *w)