menus were too short by a border width

This commit is contained in:
Dana Jansens 2003-06-24 19:22:41 +00:00
parent 6dd3ee7271
commit b61a41c6b1

View file

@ -80,7 +80,7 @@ void menu_render_full(Menu *self) {
items_h = self->item_h * MAX(nitems, 1);
XResizeWindow(ob_display, self->frame, self->size.width,
MAX(self->title_h + items_h, 1));
MAX(self->title_h + items_h + ob_rr_theme->bwidth, 1));
if (self->label)
XMoveResizeWindow(ob_display, self->title, -ob_rr_theme->bwidth,
-ob_rr_theme->bwidth,