wlroots-hyprland/examples
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
..
.gitignore Add xdg shell stubs 2017-08-09 12:31:16 -04:00
cat.c Moved cat out of support, removed support 2018-05-10 19:03:56 -07:00
cat.h Moved cat out of support, removed support 2018-05-10 19:03:56 -07:00
dmabuf-capture.c Fixed compiling with FFmpeg 5.0 2022-02-21 15:51:17 +01:00
egl_common.c examples/egl_common: switch rgba format 2022-05-09 09:38:32 +00:00
egl_common.h examples: remove dependency on wlr_egl from clients 2021-01-29 10:03:24 +01:00
foreign-toplevel.c examples/foreign-toplevel: fix toplevel not being freed 2021-10-07 20:36:21 +02:00
fullscreen-shell.c surface: deprecate wlr_surface.h 2022-01-13 10:06:41 +00:00
gamma-control.c Remove unnecessary wl_display_dispatch calls 2020-08-24 07:55:35 -06:00
idle-inhibit.c examples: drop wlr/render/egl.h include from client examples 2021-02-14 16:49:54 +01:00
idle.c Remove unnecessary wl_display_dispatch calls 2020-08-24 07:55:35 -06:00
input-inhibitor.c examples: drop wlr/render/egl.h include from client examples 2021-02-14 16:49:54 +01:00
input-method-keyboard-grab.c Remove unnecessary wl_display_dispatch calls 2020-08-24 07:55:35 -06:00
input-method.c examples/input-method: Don't crash on NULL surrounding text 2022-03-02 14:28:58 +00:00
keyboard-shortcuts-inhibit.c examples: drop wlr/render/egl.h include from client examples 2021-02-14 16:49:54 +01:00
layer-shell.c examples/layer-shell: premultiply alpha 2022-05-09 10:08:44 +00:00
meson.build examples: remove unnecessary partial_dependency() call 2021-12-07 16:20:54 +01:00
multi-pointer.c types/wlr_keyboard: uniformize events name 2022-03-17 18:16:14 +00:00
output-layout.c types/wlr_keyboard: uniformize events name 2022-03-17 18:16:14 +00:00
output-power-management.c Remove unnecessary wl_display_dispatch calls 2020-08-24 07:55:35 -06:00
pointer-constraints.c examples: drop wlr/render/egl.h include from client examples 2021-02-14 16:49:54 +01:00
pointer.c types/wlr_touch: uniformize events name 2022-03-17 18:16:14 +00:00
quads.c types/wlr_keyboard: uniformize events name 2022-03-17 18:16:14 +00:00
relative-pointer-unstable-v1.c examples: drop wlr/render/egl.h include from client examples 2021-02-14 16:49:54 +01:00
rotation.c types/wlr_keyboard: uniformize events name 2022-03-17 18:16:14 +00:00
scene-graph.c xdg-shell: specify version in wlr_xdg_shell_create 2022-05-15 15:44:40 +00:00
screencopy-dmabuf.c examples: use perror instead of fprintf GNU %m printf extension 2020-10-11 06:36:23 +02:00
screencopy.c examples: use perror instead of fprintf GNU %m printf extension 2020-10-11 06:36:23 +02:00
simple.c types/wlr_keyboard: uniformize events name 2022-03-17 18:16:14 +00:00
tablet.c types/wlr_tablet_tool: uniformize events name 2022-03-17 18:16:14 +00:00
text-input.c examples: drop wlr/render/egl.h include from client examples 2021-02-14 16:49:54 +01:00
toplevel-decoration.c examples: drop wlr/render/egl.h include from client examples 2021-02-14 16:49:54 +01:00
touch.c types/wlr_touch: uniformize events name 2022-03-17 18:16:14 +00:00
virtual-pointer.c Flush events in virtual pointer example 2021-05-22 13:36:30 +02:00