diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-05-06 08:02:05 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-05-06 08:02:05 +0000 |
| commit | 007e62fa7722cafcd5344976cb4b621931eae3b0 (patch) | |
| tree | e707fd26698834d53c2c4a47e361cbae0903d77f /openbox | |
| parent | 2ad26c7e70b6141f0aec339051d800099222a669 (diff) | |
fix popup sizes
Diffstat (limited to 'openbox')
| -rw-r--r-- | openbox/popup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/openbox/popup.c b/openbox/popup.c index 82a78f1d..75bbdcab 100644 --- a/openbox/popup.c +++ b/openbox/popup.c @@ -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; |
