sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 7e95b9d04fb853c347d166aa567a316807babc37
parent 7b2dab97eb8ab0160a56a8109a38dfc97618a2bc
Author: Sebastian LaVine <mail@smlavine.com>
Date:   Sat,  3 Jul 2021 19:19:51 -0400

[dmenu] Add lines-below-prompt patch

Diffstat:
Atools.suckless.org/dmenu/patches/lines-below-prompt/dmenu-linesbelowprompt-20210703-1a13d04.diff | 25+++++++++++++++++++++++++
Atools.suckless.org/dmenu/patches/lines-below-prompt/dmenu_lines-below-prompt.png | 0
Atools.suckless.org/dmenu/patches/lines-below-prompt/index.md | 20++++++++++++++++++++
3 files changed, 45 insertions(+), 0 deletions(-)

diff --git a/tools.suckless.org/dmenu/patches/lines-below-prompt/dmenu-linesbelowprompt-20210703-1a13d04.diff b/tools.suckless.org/dmenu/patches/lines-below-prompt/dmenu-linesbelowprompt-20210703-1a13d04.diff @@ -0,0 +1,25 @@ +From 98e63311c4816fb3c7f5c5d00232fec3232465f3 Mon Sep 17 00:00:00 2001 +From: Sebastian LaVine <mail@smlavine.com> +Date: Sat, 3 Jul 2021 17:35:50 -0400 +Subject: [PATCH] Draw lines immediately below prompt + +--- + dmenu.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/dmenu.c b/dmenu.c +index 65f25ce..5a041a6 100644 +--- a/dmenu.c ++++ b/dmenu.c +@@ -154,7 +154,7 @@ drawmenu(void) + if (lines > 0) { + /* draw vertical list */ + for (item = curr; item != next; item = item->right) +- drawitem(item, x, y += bh, mw - x); ++ drawitem(item, x - promptw, y += bh, mw - x); + } else if (matches) { + /* draw horizontal list */ + x += inputw; +-- +2.32.0 + diff --git a/tools.suckless.org/dmenu/patches/lines-below-prompt/dmenu_lines-below-prompt.png b/tools.suckless.org/dmenu/patches/lines-below-prompt/dmenu_lines-below-prompt.png Binary files differ. diff --git a/tools.suckless.org/dmenu/patches/lines-below-prompt/index.md b/tools.suckless.org/dmenu/patches/lines-below-prompt/index.md @@ -0,0 +1,20 @@ +lines below prompt +================== + +Description +----------- +With this patch, a vertical list starts being drawn at the same +horizontal line the prompt is drawn, on the left side of the window. +Without this patch, lines are drawn to the right of the end of the +prompt. + +![dmenu lines-below-prompt screenshot](dmenu_lines-below-prompt.png) + +Download +-------- +* [dmenu-linesbelowprompt-20210703-1a13d04.diff](dmenu-linesbelowprompt-20210703-1a13d04.diff) (2021-07-03) + +Authors +------- +* Sebastian LaVine <mail@smlavine.com> +