Remove wmenu -P flag

This flag causes some issues with wmenu-run. It will be revisited in the
next release.
This commit is contained in:
adnano 2024-05-04 21:41:21 -04:00
parent 81d46e3912
commit c05ab7520b
5 changed files with 5 additions and 30 deletions

View file

@ -79,22 +79,8 @@ static void render_prompt(struct menu *menu, cairo_t *cairo) {
// Renders the input text.
static void render_input(struct menu *menu, cairo_t *cairo) {
char *censort = NULL;
if (menu->passwd) {
censort = calloc(1, sizeof(menu->input));
if (!censort) {
return;
}
memset(censort, '*', strlen(menu->input));
}
render_text(menu, cairo, menu->passwd ? censort : menu->input,
menu->promptw, 0, 0, 0, menu->normalfg, menu->padding, menu->padding);
if (censort) {
free(censort);
}
render_text(menu, cairo, menu->input, menu->promptw, 0, 0,
0, menu->normalfg, menu->padding, menu->padding);
}
// Renders a cursor for the input field.