dmenu

Mahdi's build of dmenu
git clone git://mahdi.pw/dmenu.git
Log | Files | Refs | README | LICENSE

dmenu-linesbelowprompt-and-fullwidth-20211014.diff (667B)


      1 From 98e63311c4816fb3c7f5c5d00232fec3232465f3 Mon Sep 17 00:00:00 2001
      2 From: Sebastian LaVine <[email protected]>
      3 Date: Sat, 3 Jul 2021 17:35:50 -0400
      4 Subject: [PATCH] Draw lines immediately below prompt
      5 
      6 ---
      7  dmenu.c | 2 +-
      8  1 file changed, 1 insertion(+), 1 deletion(-)
      9 
     10 diff --git a/dmenu.c b/dmenu.c
     11 index 65f25ce..5a041a6 100644
     12 --- a/dmenu.c
     13 +++ b/dmenu.c
     14 @@ -154,7 +154,7 @@ drawmenu(void)
     15  	if (lines > 0) {
     16  		/* draw vertical list */
     17  		for (item = curr; item != next; item = item->right)
     18 -			drawitem(item, x, y += bh, mw - x);
     19 +			drawitem(item, x - promptw, y += bh, mw);
     20  	} else if (matches) {
     21  		/* draw horizontal list */
     22  		x += inputw;
     23 -- 
     24 2.32.0
     25