Skip to content

xdg_decoration: Advertise xdg-decoration-v1 version 2. - #563

Merged
phkaeser merged 1 commit into
phkaeser:mainfrom
danielfikko:xdg-decoration-v2
Oct 28, 2026
Merged

phkaeser merged 1 commit into
phkaeser:mainfrom
danielfikko:xdg-decoration-v2

Conversation

@danielfikko

@danielfikko danielfikko commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

The version 2 allows the client to enable or disable window decorations at runtime. See for more information:

https://gitlab.freedesktop.org/wayland/wayland-protocols/-/work_items/9
https://gitlab.freedesktop.org/wayland/wayland-protocols/-/commit/fedde2456ed1572ad4d46fff119220cb845e79d6

In winex11, there is an option to disable or enable window decorations:

Image

One of the reasons winewayland does not support server-side decorations is the lack of compositors implementing version 2 of the xdg-decoration protocol, which would facilitate the implementation of this Wine option.

Depends on this commit: https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/bd99e8c2bd077251e8fe1f21ed5ed2ddb92c9cf0. So this PR will presumably have to wait for wlroots 0.21.

@phkaeser

Copy link
Copy Markdown
Owner

Thanks for the PR! Yes, this will need some changes for wlmaker to use wlroots at head (until the upstream change is in a tagged release).

Additionally, it'll be good to add a #ifdef conditional around this change, based on the WLR_VERSION (to not use the extra parameter for versions up to 0.20).

(managing expectations: I won't be able to make time for this before the weekend, though)

@danielfikko

Copy link
Copy Markdown
Contributor Author

Hm, maybe I can't do it either. I don't know how to program in C, I just used the sway implementation as a reference, since in this case, the implementation is pretty straightforward in most wlroots-based compositors.

@phkaeser
phkaeser marked this pull request as ready for review October 28, 2026 10:13
@phkaeser

Copy link
Copy Markdown
Owner

Updated the build system to accept wlroots 0.21 with #566 , and modified the PR to compile the additional argument conditionally, depending on the used wlroots version.

Thanks for the PR!

@phkaeser
phkaeser merged commit 0aec10c into phkaeser:main Oct 28, 2026
10 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