projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f85a855
)
use the theme padding for the menu title's size
author
Dana Jansens
<danakj@orodu.net>
Wed, 17 Sep 2003 06:10:29 +0000
(06:10 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Wed, 17 Sep 2003 06:10:29 +0000
(06:10 +0000)
openbox/menuframe.c
patch
|
blob
|
history
diff --git
a/openbox/menuframe.c
b/openbox/menuframe.c
index
ecd2b59
..
212a8d9
100644
(file)
--- a/
openbox/menuframe.c
+++ b/
openbox/menuframe.c
@@
-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);