From 41e8599392a543a537f15447e20fd7bc8d8f2297 Mon Sep 17 00:00:00 2001 From: adnano Date: Thu, 2 May 2024 21:39:54 -0400 Subject: Add wmenu-run executable --- menu.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'menu.c') diff --git a/menu.c b/menu.c index 144a052..cbc94b4 100644 --- a/menu.c +++ b/menu.c @@ -529,6 +529,8 @@ void menu_keypress(struct menu *menu, enum wl_keyboard_key_state key_state, puts(menu->input); fflush(stdout); menu->exit = true; + } else if (menu->callback) { + menu->callback(menu); } else { char *text = menu->sel ? menu->sel->text : menu->input; puts(text); -- cgit v1.2.3