diff options
| author | William Wernert <william.wernert@gmail.com> | 2026-01-21 10:54:02 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-21 15:54:02 +0000 |
| commit | f9fb24577a0891bc4a8e9591c63ace789fd466a1 (patch) | |
| tree | 20b4a8b78478dfedb524e21337482f334e63b9d2 /src/Compositor.cpp | |
| parent | 55f40ecc9572b55319f5af3ad947476b4fe9ce2f (diff) | |
animation: reset tick state on session activation (#13024)
After suspend/wake, the animation tick timer state (m_lastTickValid,
m_tickScheduled) could be stale, causing framerate drops when blur is
enabled. This was introduced in 2b0fd417 which changed the animation
tick timing mechanism.
Reset the tick state when the session becomes active to ensure a clean
state for the animation system.
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 3299113c..1d80c65c 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -483,6 +483,10 @@ void CCompositor::initAllSignals() { m_sessionActive = true; + // Reset animation tick state to avoid stale timer issues after suspend/wake + if (g_pAnimationManager) + g_pAnimationManager->resetTickState(); + for (auto const& m : m_monitors) { scheduleFrameForMonitor(m); m->applyMonitorRule(&m->m_activeMonitorRule, true); |
