From 9c3f50cbcf8868cd3d1d5dfe6d40c7b477d5680b Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sun, 28 Sep 2008 22:05:25 +0200 Subject: [PATCH] Center text in pager popup and make it at least as wide as it is high. --- openbox/popup.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/openbox/popup.c b/openbox/popup.c index 5ecf2fa5..063fb1f1 100644 --- a/openbox/popup.c +++ b/openbox/popup.c @@ -217,6 +217,9 @@ void popup_delay_show(ObPopup *self, gulong msec, gchar *text) emptyx = emptyy = 0; } + if (texth > textw) textw = texth; + popup_set_text_align(self, RR_JUSTIFY_CENTER); + w = textw + emptyx + iconw; /* cap it at maxw/minw */ if (self->maxw) w = MIN(w, self->maxw); -- 2.39.2