]> Dogcows Code - chaz/openbox/blobdiff - openbox/popup.c
Fix negative ResizeRelative values with terminal windows (Fix bug 5228)
[chaz/openbox] / openbox / popup.c
index e6e1ec5a3e1c952f8c889806af27936eac0e0318..2a83d7b8ed652832026526334cda9bc0455e36a4 100644 (file)
@@ -200,11 +200,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
This page took 0.024592 seconds and 4 git commands to generate.