From a91d0ac156fe385da23e6a4b76c2e1450615b8af Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Sat, 5 Oct 2019 11:38:29 -0300 Subject: [PATCH] wayland: Allow binding to wl_compositor v4 This is a requirement for using VK_KHR_incremental_present. Vulkan Wayland drivers translate the VkPresentRegionsKHR to wl_surface.damage_buffer(), which a v4-only request. --- gdk/wayland/gdkdisplay-wayland.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gdk/wayland/gdkdisplay-wayland.c b/gdk/wayland/gdkdisplay-wayland.c index d1377888dc..9f1fa5b380 100644 --- a/gdk/wayland/gdkdisplay-wayland.c +++ b/gdk/wayland/gdkdisplay-wayland.c @@ -416,8 +416,8 @@ gdk_registry_handle_global (void *data, if (strcmp (interface, "wl_compositor") == 0) { display_wayland->compositor = - wl_registry_bind (display_wayland->wl_registry, id, &wl_compositor_interface, MIN (version, 3)); - display_wayland->compositor_version = MIN (version, 3); + wl_registry_bind (display_wayland->wl_registry, id, &wl_compositor_interface, MIN (version, 4)); + display_wayland->compositor_version = MIN (version, 4); } else if (strcmp (interface, "wl_shm") == 0) { -- 2.30.2