[client] wayland: bind xdg_activation_v1 when available

This commit is contained in:
Tudor Brindus
2022-02-06 16:07:29 -05:00
committed by Geoffrey McRae
parent b13582a911
commit 4ee6bdf198
5 changed files with 56 additions and 0 deletions

View File

@@ -72,6 +72,9 @@ static void registryGlobalHandler(void * data, struct wl_registry * registry,
wlWm.xdgOutputManager = wl_registry_bind(wlWm.registry, name,
// we only need v2 to run, but v3 saves a callback
&zxdg_output_manager_v1_interface, version > 3 ? 3 : version);
else if (!strcmp(interface, xdg_activation_v1_interface.name))
wlWm.xdgActivation = wl_registry_bind(wlWm.registry, name,
&xdg_activation_v1_interface, 1);
}
static void registryGlobalRemoveHandler(void * data,