projects
/
dana
/
openbox-history.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0fedacf
)
guarantee an even height for the label, and thus the titlebar, and thus the buttons...
author
Dana Jansens
<danakj@orodu.net>
Fri, 11 May 2007 05:34:53 +0000
(
05:34
+0000)
committer
Dana Jansens
<danakj@orodu.net>
Fri, 11 May 2007 05:34:53 +0000
(
05:34
+0000)
render/theme.c
patch
|
blob
|
history
diff --git
a/render/theme.c
b/render/theme.c
index
d29b35a
..
dd9c765
100644
(file)
--- a/
render/theme.c
+++ b/
render/theme.c
@@
-1191,6
+1191,7
@@
RrTheme* RrThemeNew(const RrInstance *inst, gchar *name,
RrMargins(theme->a_focused_label, &fl, &ft, &fr, &fb);
RrMargins(theme->a_unfocused_label, &ul, &ut, &ur, &ub);
theme->label_height = theme->win_font_height + MAX(ft + fb, ut + ub);
+ theme->label_height += theme->label_height % 2;
/* this would be nice I think, since padding.width can now be 0,
but it breaks frame.c horribly and I don't feel like fixing that