sites

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

commit c6aa6cf36f03bd854525e20e3c5a49c57a6bd458
parent 56c72b06e7465f454df0cc830ad41d65cace2be7
Author: fssSGJ <fsstweeter@gmail.com>
Date:   Mon,  1 Nov 2021 01:19:54 +0100

Removed prompt size subtraction

Now the full width of the menu can be used.
There's no point to this subtraction.
It removed the offset in the base version.

Diffstat:
Atools.suckless.org/dmenu/patches/lines-below-prompt/dmenu-linesbelowprompt-and-fullwidth-20211014.diff | 25+++++++++++++++++++++++++
Atools.suckless.org/dmenu/patches/lines-below-prompt/dmenu-linesbelowprompt-change.gif | 0
Mtools.suckless.org/dmenu/patches/lines-below-prompt/index.md | 9++++++++-
3 files changed, 33 insertions(+), 1 deletion(-)

diff --git a/tools.suckless.org/dmenu/patches/lines-below-prompt/dmenu-linesbelowprompt-and-fullwidth-20211014.diff b/tools.suckless.org/dmenu/patches/lines-below-prompt/dmenu-linesbelowprompt-and-fullwidth-20211014.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); + } else if (matches) { + /* draw horizontal list */ + x += inputw; +-- +2.32.0 + diff --git a/tools.suckless.org/dmenu/patches/lines-below-prompt/dmenu-linesbelowprompt-change.gif b/tools.suckless.org/dmenu/patches/lines-below-prompt/dmenu-linesbelowprompt-change.gif 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 @@ -10,11 +10,18 @@ prompt. ![dmenu lines-below-prompt screenshot](dmenu_lines-below-prompt.png) +If you are concerned about space, you should use the 2021-11-01 patch, as it removes the subtraction of the prompt size. + +![dmenu-linesbelowprompt-change.gif](dmenu-linesbelowprompt-change.gif) + + Download -------- * [dmenu-linesbelowprompt-20210703-1a13d04.diff](dmenu-linesbelowprompt-20210703-1a13d04.diff) (2021-07-03) +* [dmenu-linesbelowprompt-and-fullwidth-20211014.diff](dmenu-linesbelowprompt-and-fullwidth-20211014.diff) (2021-11-01) + Authors ------- * Sebastian LaVine <mail@smlavine.com> - +* fssSGJ <fssSGJ@mail.ch> (2021-11-01)