summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-06-12 16:38:42 +0000
committerDana Jansens <danakj@orodu.net>2007-06-12 16:38:42 +0000
commitd57ea6ece7e91eb7876b7e31ab343f2b9b848986 (patch)
tree5416848646d1aec2fe8b7ea1dee204065e486b25 /openbox
parent124303ab7233734273eeccbc7c7507b09ddb2675 (diff)
include padding in the menu header min width
Diffstat (limited to 'openbox')
-rw-r--r--openbox/menuframe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbox/menuframe.c b/openbox/menuframe.c
index 654cf2ba..6b3e729b 100644
--- a/openbox/menuframe.c
+++ b/openbox/menuframe.c
@@ -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;