make menu height accurate to dwm, dmenu, and dwl's bar patch
This commit is contained in:
parent
cf6f5b9d06
commit
e4c4627eeb
1 changed files with 1 additions and 1 deletions
2
menu.c
2
menu.c
|
@ -165,7 +165,7 @@ void menu_getopts(struct menu *menu, int argc, char *argv[]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
int height = get_font_height(menu->font);
|
int height = get_font_height(menu->font);
|
||||||
menu->line_height = height + 3;
|
menu->line_height = height + 2;
|
||||||
menu->height = menu->line_height;
|
menu->height = menu->line_height;
|
||||||
if (menu->lines > 0) {
|
if (menu->lines > 0) {
|
||||||
menu->height += menu->height * menu->lines;
|
menu->height += menu->height * menu->lines;
|
||||||
|
|
Loading…
Add table
Reference in a new issue