From 552e40a4be659170f9c3361d39abb10ef47e91f6 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Tue, 19 Dec 2017 19:04:52 +0100 Subject: [PATCH] Add wl_subcompositor support --- src/wl_init.c | 5 +++++ src/wl_platform.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/wl_init.c b/src/wl_init.c index ecfe955f..f3e0cb8b 100644 --- a/src/wl_init.c +++ b/src/wl_init.c @@ -527,6 +527,11 @@ static void registryHandleGlobal(void* data, wl_registry_bind(registry, name, &wl_compositor_interface, _glfw.wl.compositorVersion); } + else if (strcmp(interface, "wl_subcompositor") == 0) + { + _glfw.wl.subcompositor = + wl_registry_bind(registry, name, &wl_subcompositor_interface, 1); + } else if (strcmp(interface, "wl_shm") == 0) { _glfw.wl.shm = diff --git a/src/wl_platform.h b/src/wl_platform.h index 44f6f2d6..d62ff917 100644 --- a/src/wl_platform.h +++ b/src/wl_platform.h @@ -192,6 +192,7 @@ typedef struct _GLFWlibraryWayland struct wl_display* display; struct wl_registry* registry; struct wl_compositor* compositor; + struct wl_subcompositor* subcompositor; struct wl_shell* shell; struct wl_shm* shm; struct wl_seat* seat;