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/managers/animation/AnimationManager.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/managers/animation/AnimationManager.cpp')
| -rw-r--r-- | src/managers/animation/AnimationManager.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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") |
