use the theme padding for the menu title's size

This commit is contained in:
Dana Jansens 2003-09-17 06:10:29 +00:00
parent f85a855417
commit ad7fd99f1d

View file

@ -398,8 +398,10 @@ static void menu_frame_render(ObMenuFrame *self)
self->a_title->texture[0].data.text.string = self->menu->title; self->a_title->texture[0].data.text.string = self->menu->title;
RrMinsize(self->a_title, &tw, &th); RrMinsize(self->a_title, &tw, &th);
tw = MIN(tw, MAX_MENU_WIDTH); tw = MIN(tw, MAX_MENU_WIDTH) + ob_rr_theme->padding * 2;
w = MAX(w, tw); w = MAX(w, tw);
th = ob_rr_theme->mtitlefont_height + ob_rr_theme->padding * 2;
h += (self->title_h = th + ob_rr_theme->bwidth); h += (self->title_h = th + ob_rr_theme->bwidth);
XSetWindowBorderWidth(ob_display, self->title, ob_rr_theme->bwidth); XSetWindowBorderWidth(ob_display, self->title, ob_rr_theme->bwidth);