From 2ed4552f8ba79d4f2ca78e61b1c74af8478be988 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 19 May 2007 20:37:33 +0000 Subject: [PATCH] round up rather than down for figuring out the width of the popup, so it will fit the text when possible --- openbox/focus_cycle_popup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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? */ -- 2.39.2