round up rather than down for figuring out the width of the popup, so it will fit the text when possible
This commit is contained in:
parent
0de1fd496f
commit
2ed4552f8b
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
/* how many icons will fit in that row? make the width fit that */
|
||||||
w -= l + r;
|
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;
|
w = icons_per_row * ICON_SIZE + l + r;
|
||||||
|
|
||||||
/* how many rows do we need? */
|
/* how many rows do we need? */
|
||||||
|
|
Loading…
Reference in a new issue