effects/desktopgrid: Schedule repaint when toggled

A repaint needs to be scheduled; otherwise the animation may not start
immediately.
remotes/origin/work/zzag/x11-window-manager
Vlad Zahorodnii 5 years ago
parent f453cb83e2
commit 29d1b25ad5
  1. 2
      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()

Loading…
Cancel
Save