From 92bbd733fa1a8fbc5eebf207932bf26be0251894 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 5 Feb 2008 00:16:48 -0500 Subject: [PATCH] make sure the alttab list-mode has at least 1 row --- openbox/focus_cycle_popup.c | 2 ++ 1 file changed, 2 insertions(+) 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 */ -- 2.44.0