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:
parent
5d5cf7c1dd
commit
3529c34934
1 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue