mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-20 04:40:02 +01:00
xwayland: Fix minimum wl_compositor protocol version
Commit 54f8fc4090 introduced the use of
wl_surface::set_buffer_scale, which is only available starting with
version 3 of the wl_compositor protocol. Because we already prefer
version 4 when available, this went unnoticed but broke versions 1, 2
and 3 when reaching the wl_surface::set_buffer_scale call.
This restores functionality for version 3 and properly document that
versions 1 and 2 are not supported anymore.
Signed-off-by: Nicolas Guichard <nicolas.guichard@kdab.com>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1862>
This commit is contained in:
parent
afc8b781d8
commit
bcc0587ab9
1 changed files with 1 additions and 1 deletions
|
|
@ -495,7 +495,7 @@ registry_global(void *data, struct wl_registry *registry, uint32_t id,
|
|||
struct xwl_screen *xwl_screen = data;
|
||||
|
||||
if (strcmp(interface, wl_compositor_interface.name) == 0) {
|
||||
uint32_t request_version = 1;
|
||||
uint32_t request_version = WL_SURFACE_SET_BUFFER_SCALE_SINCE_VERSION;
|
||||
|
||||
if (version >= WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION)
|
||||
request_version = WL_SURFACE_DAMAGE_BUFFER_SINCE_VERSION;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue