From 57b6091bd58b0ca7a51618cbaea11b8b75983cab Mon Sep 17 00:00:00 2001 From: Nate Graham Date: Mon, 25 Jan 2021 13:43:19 -0700 Subject: [PATCH] [effects/presentwindows] Activate even if only one window is open Requested by VDG. BUG: 428301 FIXED-IN: 5.22 --- effects/presentwindows/presentwindows.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/effects/presentwindows/presentwindows.cpp b/effects/presentwindows/presentwindows.cpp index 99e3598e94..2a7f744f1e 100644 --- a/effects/presentwindows/presentwindows.cpp +++ b/effects/presentwindows/presentwindows.cpp @@ -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;