Don't ignore stdin in password mode

This makes password mode work for wmenu and wmenu-run without special
cases.
This commit is contained in:
adnano 2024-05-05 10:13:01 -04:00
parent 15d7c7bcc2
commit 30abca4f30
3 changed files with 3 additions and 5 deletions

2
menu.c
View file

@ -85,7 +85,7 @@ static bool parse_color(const char *color, uint32_t *result) {
// Parse menu options from command line arguments.
void menu_getopts(struct menu *menu, int argc, char *argv[]) {
const char *usage =
"Usage: wmenu [-biPvx] [-f font] [-l lines] [-o output] [-p prompt]\n"
"Usage: wmenu [-biPv] [-f font] [-l lines] [-o output] [-p prompt]\n"
"\t[-N color] [-n color] [-M color] [-m color] [-S color] [-s color]\n";
int opt;