Fix size calculation when spreading out panes.

This commit is contained in:
nicm 2018-03-23 07:44:44 +00:00 committed by Nicholas Marriott
parent 2cd0ba5057
commit ea295ac397

View File

@ -1023,7 +1023,7 @@ layout_spread_cell(struct window *w, struct layout_cell *parent)
changed = 0;
TAILQ_FOREACH (lc, &parent->cells, entry) {
if (TAILQ_NEXT(lc, entry) == NULL)
each = size - (each * (number - 1));
each = size - ((each + 1) * (number - 1));
change = 0;
if (parent->type == LAYOUT_LEFTRIGHT) {
change = each - (int)lc->sx;