projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ad26c7
)
fix popup sizes
author
Dana Jansens
<danakj@orodu.net>
Sun, 6 May 2007 08:02:05 +0000
(08:02 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sun, 6 May 2007 08:02:05 +0000
(08:02 +0000)
openbox/popup.c
patch
|
blob
|
history
diff --git
a/openbox/popup.c
b/openbox/popup.c
index
82a78f1
..
75bbdca
100644
(file)
--- 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;