diff options
author | adnano <me@adnano.co> | 2024-04-07 08:51:57 -0400 |
---|---|---|
committer | adnano <me@adnano.co> | 2024-04-07 08:51:57 -0400 |
commit | cf6f5b9d06d72ded0b077d6770854d0003c1b4aa (patch) | |
tree | 36680c80bcbac349a8f1c9f423c0cffc62423c10 /main.c | |
parent | 41b2e8b1e1d1415a43baa6393b7237e7e77468eb (diff) | |
download | wmenu-cf6f5b9d06d72ded0b077d6770854d0003c1b4aa.tar.gz |
Support xdg_activation_v1 protocol
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |