]> Dogcows Code - chaz/openbox/commitdiff
let the pager popup grow vertically
authorDana Jansens <danakj@orodu.net>
Thu, 10 May 2007 16:23:41 +0000 (16:23 +0000)
committerDana Jansens <danakj@orodu.net>
Thu, 10 May 2007 16:23:41 +0000 (16:23 +0000)
openbox/popup.c

index f341e0922dd543501e555875c032f0266ea23d17..5c96f073a90b71d68ac449c0bdf605eff33e8714 100644 (file)
@@ -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;
This page took 0.025785 seconds and 4 git commands to generate.