summaryrefslogtreecommitdiff
path: root/openbox
diff options
context:
space:
mode:
Diffstat (limited to 'openbox')
-rw-r--r--openbox/popup.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/openbox/popup.c b/openbox/popup.c
index 8fad26b4..3924a4d1 100644
--- a/openbox/popup.c
+++ b/openbox/popup.c
@@ -183,8 +183,11 @@ void popup_delay_show(ObPopup *self, gulong usec, gchar *text)
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;