diff options
Diffstat (limited to 'patches/dmenu_height.patch')
| -rw-r--r-- | patches/dmenu_height.patch | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/patches/dmenu_height.patch b/patches/dmenu_height.patch index 1eacfb3..acda047 100644 --- a/patches/dmenu_height.patch +++ b/patches/dmenu_height.patch @@ -1,13 +1,13 @@ -diff --git a/config.h b/config.h -index 625b1a4..0a61072 100644 ---- a/config.h -+++ b/config.h -@@ -38,7 +38,7 @@ static const unsigned int alphas[][2] = { - }; - /* -l option; if nonzero, dmenu uses vertical list with given number of lines */ - static unsigned int lines = 0; --static unsigned int lineheight = 0; /* -h option; minimum height of a menu line */ -+static unsigned int lineheight = 22; /* -h option; minimum height of a menu line */ +diff --git a/dmenu.c b/dmenu.c +index 0f7d5dd..50012fa 100644 +--- a/dmenu.c ++++ b/dmenu.c +@@ -867,7 +867,7 @@ setup(void) + dock = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE_DOCK", False); - /* - * Characters not considered part of a word while deleting words + /* calculate menu geometry */ +- bh = drw->fonts->h + 2; ++ bh = drw->fonts->h + 4; + bh = MAX(bh,lineheight); /* make a menu line AT LEAST 'lineheight' tall */ + lines = MAX(lines, 0); + mh = (lines + 1) * bh; |