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

Add surface_enter/surface_leave methods to CompositorHandler #451

Merged
merged 1 commit into from
May 21, 2024

Conversation

vially
Copy link
Contributor

@vially vially commented May 20, 2024

While the outputs() method on SurfaceData allows an app to retrieve the current outputs of a surface, it's not currently possible to easily detect changes to this value.

This pull-request adds the surface_enter/surface_leave methods to the CompositorHandler trait. These methods correspond to the wl_surface::enter/wl_surface::leave events and should make it easier for client apps to detect changes to a surface's outputs.

Note

See https://github.com/vially/flutter-rs/commit/03ff77836c12e0092b6a46f7445013f9a48c1035 for a more realistic use-case of these methods.

@wash2 wash2 merged commit 15dea44 into Smithay:master May 21, 2024
7 checks passed
@vially vially deleted the add-surface-enter-leave-methods branch May 21, 2024 16:51
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