From 29d1b25ad584faf3b66d5b38f4075a00773c9c0f Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 23 Sep 2021 16:22:32 +0300 Subject: [PATCH] effects/desktopgrid: Schedule repaint when toggled A repaint needs to be scheduled; otherwise the animation may not start immediately. --- src/effects/desktopgrid/desktopgrid.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/effects/desktopgrid/desktopgrid.cpp b/src/effects/desktopgrid/desktopgrid.cpp index 1f9f91478d..aa3ea2a092 100644 --- a/src/effects/desktopgrid/desktopgrid.cpp +++ b/src/effects/desktopgrid/desktopgrid.cpp @@ -701,6 +701,7 @@ void DesktopGridEffect::activate() timeline.setDirection(QTimeLine::Forward); timelineRunning = true; // timeline.resume(); + effects->addRepaintFull(); } void DesktopGridEffect::deactivate() @@ -709,6 +710,7 @@ void DesktopGridEffect::deactivate() timeline.setDirection(QTimeLine::Backward); timelineRunning = true; // timeline.resume(); + effects->addRepaintFull(); } void DesktopGridEffect::toggle()