all repos — openbox @ 7736fcc4b69af5847d711e90d008e05b5c4c4f26

openbox fork - make it a bit more like ryudo

center text in popups when the popu is sized to the text width
Dana Jansens danakj@orodu.net
commit

7736fcc4b69af5847d711e90d008e05b5c4c4f26

parent

faab2f4400a8979eb9d97f5ff94ba2cdf08ae954

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

jump to
M openbox/popup.copenbox/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;