From c05ab7520b452ee3b8bd974a18511dc370cbeabe Mon Sep 17 00:00:00 2001 From: adnano Date: Sat, 4 May 2024 21:41:21 -0400 Subject: Remove wmenu -P flag This flag causes some issues with wmenu-run. It will be revisited in the next release. --- render.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) (limited to 'render.c') diff --git a/render.c b/render.c index 3813af5..e33898d 100644 --- a/render.c +++ b/render.c @@ -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. -- cgit v1.2.3