]> Dogcows Code - chaz/openbox/commitdiff
fix popup sizes
authorDana Jansens <danakj@orodu.net>
Sun, 6 May 2007 08:02:05 +0000 (08:02 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 6 May 2007 08:02:05 +0000 (08:02 +0000)
openbox/popup.c

index 82a78f1dea5e10e764b97bd01d8155f5a97d56c2..75bbdcab7baacaacdf5cb4e011ef7a3c678eea92 100644 (file)
@@ -170,7 +170,8 @@ void popup_delay_show(ObPopup *self, gulong usec, gchar *text)
     w = l+r + textw + iconw + ob_rr_theme->paddingx *
         (self->hasicon ? 3 : 2);
     /* cap it at "maxw" */
-    w = MIN(w, self->maxw);
+    if (self->maxw)
+        w = MIN(w, self->maxw);
 
     /* sanity checks to avoid crashes! */
     if (w < 1) w = 1;
This page took 0.025977 seconds and 4 git commands to generate.