summaryrefslogtreecommitdiff
path: root/src/managers/AnimationManager.cpp
diff options
context:
space:
mode:
authorMaximilian Seidler <78690852+PaideiaDilemma@users.noreply.github.com>2025-01-11 16:35:57 +0000
committerGitHub <noreply@github.com>2025-01-11 16:35:57 +0000
commit9e4f90aedf2f51d3e7f3dbe5391cb193aa0bddf5 (patch)
tree9a05fc85016154a8dd1924f6c733e3c1a4795d07 /src/managers/AnimationManager.cpp
parent15dc024a398d35957ccfb50ddade5f456a1646b5 (diff)
animation: fixup adding animvars during ::tick (#9030)
Diffstat (limited to 'src/managers/AnimationManager.cpp')
-rw-r--r--src/managers/AnimationManager.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/managers/AnimationManager.cpp b/src/managers/AnimationManager.cpp
index ea74ffd2..28adc330 100644
--- a/src/managers/AnimationManager.cpp
+++ b/src/managers/AnimationManager.cpp
@@ -216,11 +216,8 @@ void CHyprAnimationManager::tick() {
static auto PANIMENABLED = CConfigValue<Hyprlang::INT>("animations:enabled");
- // We need to do this because it's perfectly valid to add/change a var during this (via callbacks)
- // FIXME: instead of doing this, make a fn to defer adding until tick is done and not in progress anymore.
- const auto PAVS = m_vActiveAnimatedVariables;
- for (auto const& pav : PAVS) {
- const auto PAV = pav.lock();
+ for (size_t i = 0; i < m_vActiveAnimatedVariables.size(); i++) {
+ const auto PAV = m_vActiveAnimatedVariables[i].lock();
if (!PAV)
continue;