summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortsxv478 <atvx717@infraredcombat.xyz>2023-02-14 17:57:56 +0300
committertsxv478 <atvx717@infraredcombat.xyz>2023-02-14 17:57:56 +0300
commit2db352d2ca758d489a87fc75d325141d1355ed7b (patch)
tree274f351cea4e8ef1441f5e3e84843fbd09257dcd
parent1c4060219172f03085e9c134391942647e52dcbf (diff)
line height variable
-rw-r--r--config.def.h3
-rw-r--r--dmenu.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h
index c96fd4b..08bcc69 100644
--- a/config.def.h
+++ b/config.def.h
@@ -24,3 +24,6 @@ static const char worddelimiters[] = " ";
/* Size of the window border when centered */
static unsigned int bw = 3;
+
+/* Pixels to add to the line height */
+static unsigned int lineheight = 2;
diff --git a/dmenu.c b/dmenu.c
index 78c4727..59b9d48 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -639,7 +639,7 @@ setup(void)
utf8 = XInternAtom(dpy, "UTF8_STRING", False);
/* calculate menu geometry */
- bh = drw->fonts->h + 2;
+ bh = drw->fonts->h + lineheight;
lines = MAX(lines, 0);
mh = (lines + 1) * bh;
promptw = (prompt && *prompt) ? TEXTW(prompt) - lrpad / 4 : 0;