From d5636d58a5441def8f4c2223fdf4419e442858bf Mon Sep 17 00:00:00 2001 From: NPScript Date: Wed, 3 Mar 2021 16:22:52 +0100 Subject: fixed prompt bug --- dmenu.c | 2 +- dmenu_run | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dmenu.c b/dmenu.c index 143c90d..8463b4c 100644 --- a/dmenu.c +++ b/dmenu.c @@ -143,7 +143,7 @@ drawmenu(void) if (prompt && *prompt) { drw_setscheme(drw, scheme[SchemeSel]); - x = drw_text(drw, x + border, border, promptw, bh, lrpad / 2, prompt, 0); + x = drw_text(drw, x, 0, promptw, bh + border, lrpad / 2, prompt, 0); } /* draw input field */ w = (lines > 0 || !matches) ? mw - x : inputw; diff --git a/dmenu_run b/dmenu_run index 834ede5..e590238 100755 --- a/dmenu_run +++ b/dmenu_run @@ -1,2 +1,2 @@ #!/bin/sh -dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} & +dmenu_path | dmenu "$@" -p "Run " | ${SHELL:-"/bin/sh"} & -- cgit v1.2.3-70-g09d2