From 48d36cd587e70b9680f65811d08038496a9ccc12 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sat, 26 Jun 2010 13:55:39 +0200 Subject: [PATCH] Move usage of iconh into the branch that assigns it --- openbox/popup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openbox/popup.c b/openbox/popup.c index 8ff8c533..6dd0e30d 100644 --- a/openbox/popup.c +++ b/openbox/popup.c @@ -201,11 +201,11 @@ void popup_delay_show(ObPopup *self, gulong msec, gchar *text) textx += iconw + ob_rr_theme->paddingx; if (textw) emptyx += ob_rr_theme->paddingx; /* between the icon and text */ + icony = (h - iconh - emptyy) / 2 + t + ob_rr_theme->paddingy; } else iconw = 0; texty = (h - texth - emptyy) / 2 + t + ob_rr_theme->paddingy; - icony = (h - iconh - emptyy) / 2 + t + ob_rr_theme->paddingy; /* when there is no icon, then fill the whole dialog with the text appearance -- 2.45.2