[wiki] [sites] [dmenu] Add lines-below-prompt patch || Sebastian LaVine

From: <git_AT_suckless.org>
Date: Sun, 04 Jul 2021 01:20:15 +0200

commit 7e95b9d04fb853c347d166aa567a316807babc37
Author: Sebastian LaVine <mail_AT_smlavine.com>
Date: Sat Jul 3 19:19:51 2021 -0400

    [dmenu] Add lines-below-prompt patch

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
new file mode 100644
index 00000000..4940d20d
--- /dev/null
+++ b/tools.suckless.org/dmenu/patches/lines-below-prompt/dmenu-linesbelowprompt-20210703-1a13d04.diff
_AT_@ -0,0 +1,25 @@
+From 98e63311c4816fb3c7f5c5d00232fec3232465f3 Mon Sep 17 00:00:00 2001
+From: Sebastian LaVine <mail_AT_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
+_AT_@ -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
new file mode 100644
index 00000000..e11c9e9d
Binary files /dev/null and b/tools.suckless.org/dmenu/patches/lines-below-prompt/dmenu_lines-below-prompt.png 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
new file mode 100644
index 00000000..e7122ff6
--- /dev/null
+++ b/tools.suckless.org/dmenu/patches/lines-below-prompt/index.md
_AT_@ -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_AT_smlavine.com>
+
Received on Sun Jul 04 2021 - 01:20:15 CEST

This archive was generated by hypermail 2.3.0 : Sun Jul 04 2021 - 01:24:43 CEST