]> Dogcows Code - chaz/openbox/blobdiff - openbox/menuframe.c
use the theme padding for the menu title's size
[chaz/openbox] / openbox / menuframe.c
index ecd2b59045340d6eabb83c06a41b0439fd9068ea..212a8d9ab6da9925dc18ed61defd4cee10ce4083 100644 (file)
@@ -398,8 +398,10 @@ static void menu_frame_render(ObMenuFrame *self)
 
         self->a_title->texture[0].data.text.string = self->menu->title;
         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);
+
+        th = ob_rr_theme->mtitlefont_height + ob_rr_theme->padding * 2;
         h += (self->title_h = th + ob_rr_theme->bwidth);
 
         XSetWindowBorderWidth(ob_display, self->title, ob_rr_theme->bwidth);
This page took 0.02093 seconds and 4 git commands to generate.