From 8b9246e31281dd31b3cc2386e37e41350bdfeaa4 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 9 Nov 2022 00:26:41 +0100 Subject: [PATCH] Add global remove callback. --- profiler/src/BackendWayland.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/profiler/src/BackendWayland.cpp b/profiler/src/BackendWayland.cpp index 74336693..afcfaa04 100644 --- a/profiler/src/BackendWayland.cpp +++ b/profiler/src/BackendWayland.cpp @@ -165,7 +165,7 @@ constexpr struct xdg_wm_base_listener wmListener = { }; -static void RegistryGlobalCb( void*, struct wl_registry* reg, uint32_t name, const char* interface, uint32_t version ) +static void RegistryGlobal( void*, struct wl_registry* reg, uint32_t name, const char* interface, uint32_t version ) { if( strcmp( interface, wl_compositor_interface.name ) == 0 ) { @@ -191,8 +191,13 @@ static void RegistryGlobalCb( void*, struct wl_registry* reg, uint32_t name, con } } +static void RegistryGlobalRemove( void*, struct wl_registry* reg, uint32_t name ) +{ +} + constexpr struct wl_registry_listener registryListener = { - .global = RegistryGlobalCb + .global = RegistryGlobal, + .global_remove = RegistryGlobalRemove };