wlroots-hyprland/types/xdg_shell
Simon Ser 8fe3aa29da xdg-shell: specify version in wlr_xdg_shell_create
With protocol additions such as [1], compositors currently have no
way to opt out of the version upgrade. The protocol upgrade will
always be backwards-compatible but may require new compositor
features.

The status quo doesn't make it possible to ship a protocol addition
without breaking the wlroots API. This will be an issue for API
stabilization [2].

To address this, let compositors provide a maximum version in the
function creating the global. We need to support all previous versions
of the interface anyways because of older clients.

This mechanism works the same way as Wayland clients passing a version
in wl_global.bind.

[1]: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3514
[2]: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/1008

References: https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/3397
2022-05-15 15:44:40 +00:00
..
wlr_xdg_popup.c xdg-positioner: rewrite unconstraining, untie from xdg-popup 2022-02-21 17:26:51 +00:00
wlr_xdg_positioner.c xdg-positioner: fix sliding regression 2022-03-15 18:08:29 +00:00
wlr_xdg_shell.c xdg-shell: specify version in wlr_xdg_shell_create 2022-05-15 15:44:40 +00:00
wlr_xdg_surface.c xdg-positioner: rename structs 2022-02-21 17:26:51 +00:00
wlr_xdg_toplevel.c xdg-shell: specify version in wlr_xdg_shell_create 2022-05-15 15:44:40 +00:00