Add support for `xdg-decoration` version 2
enhancement
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:
<img alt="Image" height="446" src="https://i.imgur.com/sP4t1VA.png" width="410"/>
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.
If, even in version 1, you already allow clients to change window decorations at runtime, all you need to do is simply bump the version from 1 to 2, just like KDE Plasma and Jay:
https://github.com/mahkoh/jay/pull/759
https://invent.kde.org/plasma/kwin/-/merge_requests/8739
关闭于 2026-05-30 3 条评论