mirror of
https://codeberg.org/adnano/wmenu.git
synced 2025-10-29 05:40:20 -04:00
Add wmenu-run executable
This commit is contained in:
parent
1f221a73cf
commit
41e8599392
7 changed files with 103 additions and 1 deletions
2
menu.c
2
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue