Add global remove callback.

This commit is contained in:
Bartosz Taudul 2022-11-09 00:26:41 +01:00
parent 89a55a2220
commit 8b9246e312
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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
};