Compare commits
4 Commits
da2689feea
...
amused
Author | SHA1 | Date | |
---|---|---|---|
33da96a7a7 | |||
3397e3c4a9 | |||
db976e0936 | |||
1e8272016b |
@ -17,7 +17,7 @@ static const char *colors[SchemeLast][2] = {
|
||||
[SchemeOut] = { "#000000", "#00ffff" },
|
||||
};
|
||||
/* -l option; if nonzero, dmenu uses vertical list with given number of lines */
|
||||
static unsigned int lines = 0;
|
||||
static unsigned int lines = 6;
|
||||
|
||||
/*
|
||||
* Characters not considered part of a word while deleting words
|
||||
|
2
dmenu.c
2
dmenu.c
@ -179,7 +179,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;
|
||||
|
25
patches/dmenu-linesbelowprompt-and-fullwidth-20211014.diff
Normal file
25
patches/dmenu-linesbelowprompt-and-fullwidth-20211014.diff
Normal file
@ -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
|
||||
|
Reference in New Issue
Block a user