summaryrefslogtreecommitdiff
path: root/dmenu.c
diff options
context:
space:
mode:
authortsxv478 <vt0451@yandex.ru>2023-02-14 17:57:56 +0300
committertsxv478 <vt0451@yandex.ru>2023-02-14 17:57:56 +0300
commitb126dcea02aa3d97dee9cbc0ed6e4773d00ca02f (patch)
tree274f351cea4e8ef1441f5e3e84843fbd09257dcd /dmenu.c
parentfee8a5dc7722d80364be4023ed01e3993d454506 (diff)
line height variable
Diffstat (limited to 'dmenu.c')
-rw-r--r--dmenu.c2
1 files changed, 1 insertions, 1 deletions
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;