diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2022-11-09 02:26:41 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2022-11-10 01:11:45 +0300 |
commit | 8b9246e31281dd31b3cc2386e37e41350bdfeaa4 (patch) | |
tree | d53a514423741c902841d634bbc8f5ab3b9afd3f | |
parent | 89a55a2220ae667555f104b20fe460780329e148 (diff) |
Add global remove callback.
-rw-r--r-- | profiler/src/BackendWayland.cpp | 9 |
1 files 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 }; |