Add wmenu-run executable

This commit is contained in:
adnano 2024-05-02 21:39:54 -04:00
parent 1f221a73cf
commit 41e8599392
7 changed files with 103 additions and 1 deletions

2
menu.c
View file

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