[effects/presentwindows] Activate even if only one window is open

Requested by VDG.

BUG: 428301
FIXED-IN: 5.22
master
Nate Graham 4 years ago
parent f5925e2f17
commit 57b6091bd5

@ -1606,9 +1606,7 @@ void PresentWindowsEffect::setActive(bool active)
}
}
if (m_motionManager.managedWindows().isEmpty() ||
((m_motionManager.managedWindows().count() == 1) && m_motionManager.managedWindows().first()->isOnCurrentDesktop() &&
(m_ignoreMinimized || !m_motionManager.managedWindows().first()->isMinimized()))) {
if (m_motionManager.managedWindows().isEmpty()) {
// No point triggering if there is nothing to do
m_activated = false;

Loading…
Cancel
Save