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

GesturePropertyTransition: Only call done_callback if the transition finished #2201

Merged
merged 2 commits into from
Jan 4, 2025

Conversation

leolost2605
Copy link
Member

The transition might be interrupted by the clutter actor being destroyed leading to the callback being called which as a result might want to destroy the actor again leading to a bail out by clutter (this was the case if the nudge animation was ongoing while kill_switch_workspace was called)
Since it shouldn't be used for setting state anyway (because of how we'd like to move to interruptible gestures) which was also clarified in a comment, this should actually be the correct behavior (we don't want to cleanup any animation stuff if we're animating anew anyways).

Fixes #2145

@leolost2605 leolost2605 requested a review from a team January 1, 2025 22:55
@leolost2605 leolost2605 mentioned this pull request Jan 2, 2025
7 tasks
Copy link
Member

@lenemter lenemter left a comment

Choose a reason for hiding this comment

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

👍

@lenemter lenemter merged commit e0cd37a into main Jan 4, 2025
5 checks passed
@lenemter lenemter deleted the leolost/only-callback-if-finished branch January 4, 2025 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Crash after #2074
2 participants