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:

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:
mahkoh/jay#759
https://invent.kde.org/plasma/kwin/-/merge_requests/8739
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:One of the reasons
winewaylanddoes not support server-side decorations is the lack of compositors implementing version 2 of thexdg-decorationprotocol, 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:
mahkoh/jay#759
https://invent.kde.org/plasma/kwin/-/merge_requests/8739