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

client-toolkit: Add suport for cosmic-toplevel-info-v1 version 2 #35

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ids1024
Copy link
Member

@ids1024 ids1024 commented Sep 19, 2024

This keeps the API compatible, adding fields to ToplevelInfo for the foreign handle, identifier, and geometry. While also supporting version 1 if that's all the compositor exposes.

This can be tested with the toplevel-monitor example, or anything else using this protocol. Change the bind_one call from 1..=2 to 1..=1 to test it it's still working with version 1 of the protocol. In the future may want to replace this with a different API, possibly trying to support wlroots as well, but this seems like a good approach for now.

This keeps the API compatible, adding fields to `ToplevelInfo` for the
foreign handle, identifier, and geometry. While also supporting version
1 if that's all the compositor exposes.
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