[gtk/gbsneto/vulkan-fixes: 1/4] wayland: Allow binding to wl_compositor v4



commit a91d0ac156fe385da23e6a4b76c2e1450615b8af
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sat Oct 5 11:38:29 2019 -0300

    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)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]