all repos — openbox @ ad7fd99f1dd3ce402dfc27c4dbd790234e0b898e

openbox fork - make it a bit more like ryudo

use the theme padding for the menu title's size
Dana Jansens danakj@orodu.net
commit

ad7fd99f1dd3ce402dfc27c4dbd790234e0b898e

parent

f85a85541790a6095eb583ddb8684eece8dcc0c6

1 files changed, 3 insertions(+), 1 deletions(-)

jump to
M openbox/menuframe.copenbox/menuframe.c

@@ -398,8 +398,10 @@ -ob_rr_theme->bwidth, h - ob_rr_theme->bwidth);

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);