From f9fb24577a0891bc4a8e9591c63ace789fd466a1 Mon Sep 17 00:00:00 2001 From: William Wernert Date: Wed, 21 Jan 2026 10:54:02 -0500 Subject: 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. --- src/managers/animation/AnimationManager.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/managers/animation/AnimationManager.cpp') diff --git a/src/managers/animation/AnimationManager.cpp b/src/managers/animation/AnimationManager.cpp index bbd220b2..f6b43e23 100644 --- a/src/managers/animation/AnimationManager.cpp +++ b/src/managers/animation/AnimationManager.cpp @@ -286,6 +286,11 @@ void CHyprAnimationManager::onTicked() { m_tickScheduled = false; } +void CHyprAnimationManager::resetTickState() { + m_lastTickValid = false; + m_tickScheduled = false; +} + std::string CHyprAnimationManager::styleValidInConfigVar(const std::string& config, const std::string& style) { if (config.starts_with("window")) { if (style.starts_with("slide") || style == "gnome" || style == "gnomed") -- cgit v1.2.3