summaryrefslogtreecommitdiff
path: root/openbox/focus_cycle_popup.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2008-02-05 00:16:48 -0500
committerDana Jansens <danakj@orodu.net>2008-02-05 00:16:48 -0500
commit92bbd733fa1a8fbc5eebf207932bf26be0251894 (patch)
treecb8a2fd862deb77578d23688cc29693b5a66991f /openbox/focus_cycle_popup.c
parent0369732c35b42b272eb66da4a54b37f253037049 (diff)
make sure the alttab list-mode has at least 1 row
Diffstat (limited to 'openbox/focus_cycle_popup.c')
-rw-r--r--openbox/focus_cycle_popup.c2
1 files changed, 2 insertions, 0 deletions
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 */