Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

animation: fixup adding animvars during ::tick #9030

Merged

Conversation

PaideiaDilemma
Copy link
Contributor

Describe your PR, what does it fix/add?

Removes the FIXME regarding adding animvars via callbacks during a tick.
Looping via indices resolves the problem when vars get added to active via a callback.

Vars are only actively removed from m_vActiveAnimatedVaraibles via the dtor of CBaseAnimatedVariable. But a CBaseAnimatedVariable can't be deleted during a callback, since we own a SP to it when calling the callback in the first place. So having elements of m_vActiveAnimatedVariables be removed via a callback during ::tick is currently not possible anyways.

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

No.

Is it ready for merging, or does it need work?

Ready.

Copy link
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

39

@vaxerski vaxerski merged commit 9e4f90a into hyprwm:main Jan 11, 2025
11 checks passed
littleblack111 pushed a commit to littleblack111/Hyprland that referenced this pull request Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants