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

xwayland: destroy xdg role before surface #51

Merged
merged 1 commit into from
Jul 1, 2024

Conversation

maxhbooth
Copy link
Contributor

No description provided.

@maxhbooth maxhbooth requested a review from ethanpailes June 28, 2024 18:39
@maxhbooth
Copy link
Contributor Author

fixes #49

@maxhbooth maxhbooth force-pushed the bug/destroy-role-before-surface branch from ae74275 to 8b62dc6 Compare June 28, 2024 18:41
@maxhbooth maxhbooth assigned maxhbooth and ethanpailes and unassigned maxhbooth Jun 28, 2024
@maxhbooth maxhbooth force-pushed the bug/destroy-role-before-surface branch from 8b62dc6 to 1b76531 Compare June 28, 2024 21:44
@@ -402,6 +401,12 @@ impl WprsState {
.retain(|child_surface_id| child_surface_id != surface_id);
}
}

// this MUST come after removing xwayland_surface, because xwayland_surface's role needs

Choose a reason for hiding this comment

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

Is there any way to express this constraint in the type system, or would it be too much of a pain/impossible to do so?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think that's probably too much work, since it seems like we'd have to combine surface_bimap and surfaces into a single field and refactor everything

@maxhbooth maxhbooth force-pushed the bug/destroy-role-before-surface branch from 1b76531 to 0f0f391 Compare July 1, 2024 14:47
@maxhbooth maxhbooth merged commit 6b99333 into master Jul 1, 2024
11 checks passed
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