From: Dana Jansens Date: Tue, 5 Feb 2008 05:16:48 +0000 (-0500) Subject: make sure the alttab list-mode has at least 1 row X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=92bbd733fa1a8fbc5eebf207932bf26be0251894;p=chaz%2Fopenbox make sure the alttab list-mode has at least 1 row --- diff --git a/openbox/focus_cycle_popup.c b/openbox/focus_cycle_popup.c index e418d96f..1d37ae9c 100644 --- a/openbox/focus_cycle_popup.c +++ b/openbox/focus_cycle_popup.c @@ -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 */