]> Dogcows Code - chaz/openbox/commitdiff
round up rather than down for figuring out the width of the popup, so it will fit...
authorDana Jansens <danakj@orodu.net>
Sat, 19 May 2007 20:37:33 +0000 (20:37 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 19 May 2007 20:37:33 +0000 (20:37 +0000)
openbox/focus_cycle_popup.c

index bbeba9435e89ca63c43764dc48cbab686a66a2bb..92f0c0c99fd2070dc79a4f1a889c435ce95eb419 100644 (file)
@@ -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? */
This page took 0.023777 seconds and 4 git commands to generate.