make menu height accurate to dwm, dmenu, and dwl's bar patch

This commit is contained in:
sewn 2024-04-09 11:12:49 +03:00 committed by adnano
parent cf6f5b9d06
commit e4c4627eeb

2
menu.c
View file

@ -165,7 +165,7 @@ void menu_getopts(struct menu *menu, int argc, char *argv[]) {
}
int height = get_font_height(menu->font);
menu->line_height = height + 3;
menu->line_height = height + 2;
menu->height = menu->line_height;
if (menu->lines > 0) {
menu->height += menu->height * menu->lines;