Skip to content

Commit

Permalink
animation: fixup adding animvars during ::tick (#9030)
Browse files Browse the repository at this point in the history
  • Loading branch information
PaideiaDilemma authored Jan 11, 2025
1 parent 15dc024 commit 9e4f90a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/managers/AnimationManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 9e4f90a

Please sign in to comment.