diff options
author | NPScript <nathan@reinerweb.ch> | 2021-03-03 16:22:52 +0100 |
---|---|---|
committer | NPScript <nathan@reinerweb.ch> | 2021-03-03 16:22:52 +0100 |
commit | d5636d58a5441def8f4c2223fdf4419e442858bf (patch) | |
tree | b8405a3d78f162df11d38c4be4f9735cfc6f9569 | |
parent | 72e253264a266514fe2709d6152e06745b3a2b39 (diff) |
fixed prompt bug
-rw-r--r-- | dmenu.c | 2 | ||||
-rwxr-xr-x | dmenu_run | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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; @@ -1,2 +1,2 @@ #!/bin/sh -dmenu_path | dmenu "$@" | ${SHELL:-"/bin/sh"} & +dmenu_path | dmenu "$@" -p "Run " | ${SHELL:-"/bin/sh"} & |