summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-19 20:37:33 +0000
committerDana Jansens <danakj@orodu.net>2007-05-19 20:37:33 +0000
commit2ed4552f8ba79d4f2ca78e61b1c74af8478be988 (patch)
tree6f2d5d72908c094077e96b63a228b5cd5ad86f8c
parent0de1fd496f3ca61080cee21138cd1aaa83a5e1db (diff)
round up rather than down for figuring out the width of the popup, so it will fit the text when possible
-rw-r--r--openbox/focus_cycle_popup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbox/focus_cycle_popup.c b/openbox/focus_cycle_popup.c
index bbeba943..92f0c0c9 100644
--- a/openbox/focus_cycle_popup.c
+++ b/openbox/focus_cycle_popup.c
@@ -264,7 +264,7 @@ static void popup_render(ObFocusCyclePopup *p, const ObClient *c)
/* how many icons will fit in that row? make the width fit that */
w -= l + r;
- icons_per_row = w / ICON_SIZE;
+ icons_per_row = (w + ICON_SIZE - 1) / ICON_SIZE;
w = icons_per_row * ICON_SIZE + l + r;
/* how many rows do we need? */