diff --git a/src/effects/desktopgrid/desktopgrid.cpp b/src/effects/desktopgrid/desktopgrid.cpp index 5db35c6961..0828b89e37 100644 --- a/src/effects/desktopgrid/desktopgrid.cpp +++ b/src/effects/desktopgrid/desktopgrid.cpp @@ -68,6 +68,9 @@ DesktopGridEffect::DesktopGridEffect() connect(a, &QAction::triggered, this, [this]() { if ((qreal(timeline.currentTime()) / qreal(timeline.duration())) > 0.5) { + if (effects->isScreenLocked()) { + return; + } activated = true; timeline.setDirection(QTimeLine::Forward); timelineRunning = true; diff --git a/src/effects/overview/overvieweffect.cpp b/src/effects/overview/overvieweffect.cpp index db55b3db27..35968d088e 100644 --- a/src/effects/overview/overvieweffect.cpp +++ b/src/effects/overview/overvieweffect.cpp @@ -155,6 +155,9 @@ void OverviewEffect::toggle() void OverviewEffect::activate() { + if (effects->isScreenLocked()) { + return; + } setRunning(true); } diff --git a/src/effects/presentwindows/presentwindows.cpp b/src/effects/presentwindows/presentwindows.cpp index ff108bf2c4..3a29bc0e6f 100644 --- a/src/effects/presentwindows/presentwindows.cpp +++ b/src/effects/presentwindows/presentwindows.cpp @@ -1592,6 +1592,9 @@ void PresentWindowsEffect::setActive(bool active) return; if (m_activated == active) return; + if (effects->isScreenLocked() && active) { + return; + } m_activated = active; if (m_activated) {