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

use weak surface ref inside transaction #1612

Merged

Conversation

cmeissl
Copy link
Collaborator

@cmeissl cmeissl commented Dec 14, 2024

use weak surface ref inside transaction to prevent keeping them alive longer as needed

this also resolves a deadlock when trying to send events in a drop impl stored in the surface state of a blocked transaction

see Smithay/wayland-rs#772 for a different way to solve the same deadlock

...to prevent keeping them alive longer as needed

this also resolves a deadlock when trying to send
events in a drop impl stored in the surface state
of a blocked transaction
@cmeissl cmeissl marked this pull request as ready for review December 14, 2024 21:14
@cmeissl cmeissl requested a review from Drakulix December 14, 2024 21:14
Copy link
Member

@Drakulix Drakulix left a comment

Choose a reason for hiding this comment

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

Regardless of fixing this in wayland-rs, this seems like a good idea.

@Drakulix Drakulix merged commit 0f32e8d into Smithay:master Dec 15, 2024
13 checks passed
@cmeissl cmeissl deleted the fix/compositor_client_state_deadlock branch December 15, 2024 11:45
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.

2 participants