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

Wayland: Add support for xdg-foreign-unstable-v2 #99965

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

Riteo
Copy link
Contributor

@Riteo Riteo commented Dec 3, 2024

The v1 version is deprecated and bound to be removed in the future from all compositors. This patch adds a v1/v2 designator to everything related to the protocol and prefers the v2 protocol if both are available.

Additionally, renames the event handler to follow the Wayland interface name, for consistency with the rest of the codebase.


Should I wrap the deprecated protocols into the deprecated header? I don't think but it's worth pointing that out.

Also note that I added a lot of "deprecated" comments, no idea if that's excessive; feedback is welcome.

I tested the thing and it seems to work, although I'm not really sure how to check it properly. dbus-monitor looks fine and we indeed get a handle so I'm quite sure it works.

cc @bruvgz as they implemented the protocol originally.

@Riteo
Copy link
Contributor Author

Riteo commented Dec 3, 2024

cc @bruvgz

Oops. Meant @bruvzg

The v1 version is deprecated and bound to be removed in the future from
all compositors. This patch adds a v1/v2 designator to everything
related to the protocol and prefers the v2 protocol if both are
available.

Additionally, renames the event handler to follow the Wayland interface
name, for consistency with the rest of the codebase.
@Riteo
Copy link
Contributor Author

Riteo commented Dec 10, 2024

Rebased. I also removed the bump of wayland-protocols as it was unncessary and updated the PR description accordingly.

Copy link
Member

@bruvzg bruvzg left a comment

Choose a reason for hiding this comment

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

Looks fine.

For the reference, it's only used for FileChooser portal window IDs - https://flatpak.github.io/xdg-desktop-portal/docs/window-identifiers.html

@Repiteo Repiteo merged commit 3877573 into godotengine:master Dec 11, 2024
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Dec 11, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants