diff options
author | Simon Ser <contact@emersion.fr> | 2022-05-11 13:57:51 +0200 |
---|---|---|
committer | Isaac Freund <mail@isaacfreund.com> | 2022-05-15 15:44:40 +0000 |
commit | 8fe3aa29da56be16faa73aca947647bd60cd4a94 (patch) | |
tree | e75f5a0e0cf975f3a50d677bfaf7ed0b453de715 /examples/scene-graph.c | |
parent | 19896e7fb63db73c4a66b68a79d7cbd039198a1d (diff) |
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
Diffstat (limited to 'examples/scene-graph.c')
-rw-r--r-- | examples/scene-graph.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/scene-graph.c b/examples/scene-graph.c index c3ce0589..f57ef1f2 100644 --- a/examples/scene-graph.c +++ b/examples/scene-graph.c @@ -169,7 +169,7 @@ int main(int argc, char *argv[]) { struct wlr_compositor *compositor = wlr_compositor_create(server.display, server.renderer); - wlr_xdg_shell_create(server.display); + wlr_xdg_shell_create(server.display, 2); server.new_output.notify = server_handle_new_output; wl_signal_add(&server.backend->events.new_output, &server.new_output); |