From: Dana Jansens Date: Sat, 19 May 2007 20:37:33 +0000 (+0000) Subject: round up rather than down for figuring out the width of the popup, so it will fit... X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;ds=sidebyside;h=2ed4552f8ba79d4f2ca78e61b1c74af8478be988;p=chaz%2Fopenbox round up rather than down for figuring out the width of the popup, so it will fit the text when possible --- 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? */