diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-05 16:46:31 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-05 16:46:31 +0000 |
| commit | 7736fcc4b69af5847d711e90d008e05b5c4c4f26 (patch) | |
| tree | 48057febfbd41cbf6c9e0ae9a723ba69fbaeb1fd /openbox/popup.c | |
| parent | faab2f4400a8979eb9d97f5ff94ba2cdf08ae954 (diff) | |
center text in popups when the popu is sized to the text width
Diffstat (limited to 'openbox/popup.c')
| -rw-r--r-- | openbox/popup.c | 5 |
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; |
