diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-02-05 00:16:48 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-02-05 00:16:48 -0500 |
| commit | 92bbd733fa1a8fbc5eebf207932bf26be0251894 (patch) | |
| tree | cb8a2fd862deb77578d23688cc29693b5a66991f | |
| parent | 0369732c35b42b272eb66da4a54b37f253037049 (diff) | |
make sure the alttab list-mode has at least 1 row
| -rw-r--r-- | openbox/focus_cycle_popup.c | 2 |
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 */ |
