aboutsummaryrefslogtreecommitdiff
path: root/wmenu.c
diff options
context:
space:
mode:
authoradnano <me@adnano.co>2024-05-05 10:13:01 -0400
committeradnano <me@adnano.co>2024-05-05 10:13:01 -0400
commit30abca4f301a3e851d020119f654586c56c70263 (patch)
treef059ad288e11e0fee9c6c62b445e98a5f3bdf2ff /wmenu.c
parent15d7c7bcc29e66f174c4de2420d371a9737ac6e4 (diff)
downloadwmenu-30abca4f301a3e851d020119f654586c56c70263.tar.gz
Don't ignore stdin in password mode
This makes password mode work for wmenu and wmenu-run without special cases.
Diffstat (limited to 'wmenu.c')
-rw-r--r--wmenu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/wmenu.c b/wmenu.c
index 0a3d0b0..e7d37d9 100644
--- a/wmenu.c
+++ b/wmenu.c
@@ -19,9 +19,7 @@ static void read_items(struct menu *menu) {
int main(int argc, char *argv[]) {
struct menu *menu = menu_create();
menu_getopts(menu, argc, argv);
- if (!menu->passwd) {
- read_items(menu);
- }
+ read_items(menu);
int status = menu_run(menu);
menu_destroy(menu);
return status;