summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openbox/popup.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/openbox/popup.c b/openbox/popup.c
index f341e092..5c96f073 100644
--- a/openbox/popup.c
+++ b/openbox/popup.c
@@ -169,11 +169,9 @@ void popup_delay_show(ObPopup *self, gulong usec, gchar *text)
/* get the height, which is also used for the icon width */
emptyy = t + b + ob_rr_theme->paddingy * 2;
- if (self->h) {
- h = self->h;
- texth = h - emptyy;
- } else
- h = texth * self->iconhm + emptyy;
+ if (self->h)
+ texth = self->h - emptyy;
+ h = texth * self->iconhm + emptyy;
if (self->textw)
textw = self->textw;