From: Mikael Magnusson Date: Sun, 28 Sep 2008 20:05:25 +0000 (+0200) Subject: Center text in pager popup and make it at least as wide as it is high. X-Git-Tag: mikabox-3.5-7~35^2~8 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=a8f1e5dd1202bef024a5369d954dd23197950559;p=mikachu%2Fopenbox.git Center text in pager popup and make it at least as wide as it is high. --- diff --git a/openbox/popup.c b/openbox/popup.c index 2a83d7b8..4340918a 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);