From cf6f5b9d06d72ded0b077d6770854d0003c1b4aa Mon Sep 17 00:00:00 2001 From: adnano Date: Sun, 7 Apr 2024 08:51:57 -0400 Subject: Support xdg_activation_v1 protocol --- main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'main.c') diff --git a/main.c b/main.c index 7b43b43..710f75f 100644 --- a/main.c +++ b/main.c @@ -18,6 +18,7 @@ #include "menu.h" #include "render.h" +#include "xdg-activation-v1-client-protocol.h" #include "wlr-layer-shell-unstable-v1-client-protocol.h" static void noop() { @@ -203,6 +204,8 @@ static void handle_global(void *data, struct wl_registry *registry, wl_output_set_user_data(wl_output, output); wl_output_add_listener(wl_output, &output_listener, output); menu_add_output(menu, output); + } else if (strcmp(interface, xdg_activation_v1_interface.name) == 0) { + menu->activation = wl_registry_bind(registry, name, &xdg_activation_v1_interface, 1); } } @@ -227,6 +230,7 @@ static void menu_connect(struct menu *menu) { assert(menu->seat != NULL); assert(menu->data_device_manager != NULL); assert(menu->layer_shell != NULL); + assert(menu->activation != NULL); menu->registry = registry; // Get data device for seat -- cgit v1.2.3