]> Dogcows Code - chaz/openbox/commitdiff
include padding in the menu header min width
authorDana Jansens <danakj@orodu.net>
Tue, 12 Jun 2007 16:38:42 +0000 (16:38 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 12 Jun 2007 16:38:42 +0000 (16:38 +0000)
openbox/menuframe.c

index 654cf2ba611932012f62394b10950a2ef8093758..6b3e729b0e0ed56868c1ca172d7bc6825880703c 100644 (file)
@@ -731,7 +731,7 @@ void menu_frame_render(ObMenuFrame *self)
             if (e->entry->data.separator.label != NULL) {
                 e->a_text_title->texture[0].data.text.string =
                     e->entry->data.separator.label;
-                tw = RrMinWidth(e->a_text_title);
+                tw = RrMinWidth(e->a_text_title) + 2*ob_rr_theme->paddingx;
                 tw = MIN(tw, MAX_MENU_WIDTH);
                 th = ob_rr_theme->menu_title_height +
                     (ob_rr_theme->mbwidth - PADDING) *2;
This page took 0.024918 seconds and 4 git commands to generate.