fix popup sizes
This commit is contained in:
parent
2ad26c7e70
commit
007e62fa77
1 changed files with 2 additions and 1 deletions
|
@ -170,7 +170,8 @@ void popup_delay_show(ObPopup *self, gulong usec, gchar *text)
|
||||||
w = l+r + textw + iconw + ob_rr_theme->paddingx *
|
w = l+r + textw + iconw + ob_rr_theme->paddingx *
|
||||||
(self->hasicon ? 3 : 2);
|
(self->hasicon ? 3 : 2);
|
||||||
/* cap it at "maxw" */
|
/* cap it at "maxw" */
|
||||||
w = MIN(w, self->maxw);
|
if (self->maxw)
|
||||||
|
w = MIN(w, self->maxw);
|
||||||
|
|
||||||
/* sanity checks to avoid crashes! */
|
/* sanity checks to avoid crashes! */
|
||||||
if (w < 1) w = 1;
|
if (w < 1) w = 1;
|
||||||
|
|
Loading…
Reference in a new issue