center text in popups when the popu is sized to the text width
Dana Jansens danakj@orodu.net
1 files changed,
4 insertions(+),
1 deletions(-)
jump to
M
openbox/popup.c
→
openbox/popup.c
@@ -183,8 +183,11 @@ if (self->h)
texth = self->h - emptyy; h = texth * self->iconhm + emptyy; - if (self->textw) + if (self->textw) { + self->a_text->texture[0].data.text.justify = RR_JUSTIFY_LEFT; textw = self->textw; + } else + self->a_text->texture[0].data.text.justify = RR_JUSTIFY_CENTER; iconx = textx = l + ob_rr_theme->paddingx;