guarantee an even height for the label, and thus the titlebar, and thus the buttons. that way an even sized mask in the button will always be centred
Dana Jansens danakj@orodu.net
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
render/theme.c
→
render/theme.c
@@ -1191,6 +1191,7 @@
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