From: Georges Basile Stavracas Neto Date: Sat, 5 Oct 2019 14:38:29 +0000 (-0300) Subject: wayland: Allow binding to wl_compositor v4 X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~20^2~812^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a91d0ac156fe385da23e6a4b76c2e1450615b8af;p=gtk4.git 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. --- 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) {