Commit 57b6091b authored by Nate Graham's avatar Nate Graham
Browse files

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

Requested by VDG.

BUG: 428301
FIXED-IN: 5.22
parent f5925e2f
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment