projects
/
mikachu
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0de1fd4
)
round up rather than down for figuring out the width of the popup, so it will fit...
author
Dana Jansens
<danakj@orodu.net>
Sat, 19 May 2007 20:37:33 +0000
(20:37 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Sat, 19 May 2007 20:37:33 +0000
(20:37 +0000)
openbox/focus_cycle_popup.c
patch
|
blob
|
history
diff --git
a/openbox/focus_cycle_popup.c
b/openbox/focus_cycle_popup.c
index
bbeba94
..
92f0c0c
100644
(file)
--- 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? */