A tiling window manager

vscreens: resize: grow: last vscreen should be N-1 rather than N

growing the number (set vscreens N) at runtime would always grow one
extra: new set of vscreens had the last one indexed at N, rather than
N-1. this meant there was always one extra when we grew the vscreen
count. the end must be shifted by one left.

conversely, shrinking already worked correctly: the new set of vscreens
would have the last one indexed at N-1

authored by

Scott Mcdermott and committed by jcs.org b777d1db 358d0b45

+1 -1
+1 -1
vscreen.c
··· 125 125 } 126 126 } else if (n > defaults.vscreens) { 127 127 list_for_each_entry(scr, &rp_screens, node) { 128 - for (x = defaults.vscreens; x <= n; x++) { 128 + for (x = defaults.vscreens; x < n; x++) { 129 129 cur = xmalloc(sizeof(rp_vscreen)); 130 130 init_vscreen(cur, scr); 131 131 list_add_tail(&cur->node, &scr->vscreens);