]> Dogcows Code - chaz/openbox/commitdiff
make sure the alttab list-mode has at least 1 row
authorDana Jansens <danakj@orodu.net>
Tue, 5 Feb 2008 05:16:48 +0000 (00:16 -0500)
committerDana Jansens <danakj@orodu.net>
Tue, 5 Feb 2008 05:16:48 +0000 (00:16 -0500)
openbox/focus_cycle_popup.c

index e418d96fadb26c202e1bb65fc2c60c3b20823ac1..1d37ae9c0c3ee7c06b4562f0249feb8f9a2fe392 100644 (file)
@@ -368,6 +368,8 @@ static void popup_render(ObFocusCyclePopup *p, const ObClient *c)
                         (4*screen_area->height/5) /* 80% of the screen */
                         /
                         MAX(HILITE_SIZE, texth)); /* height of each row */
+        /* but make sure there is always one */
+        icon_rows = MAX(icon_rows, 1);
     }
 
     /* get the text width */
This page took 0.023797 seconds and 4 git commands to generate.