X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/7d156dee1e80f7d26aa0a31a6d2c75af06cbaa9a..a92cf496c18189f9cbc7c1d7f8edcebbd1d7ff99:/tile.c?ds=sidebyside diff --git a/tile.c b/tile.c index 114e84c..7915441 100644 --- a/tile.c +++ b/tile.c @@ -46,7 +46,7 @@ tile(void) { nx = wax; ny = way; - for(i = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) { + for(i = 0, c = nexttiled(clients); c; c = nexttiled(c->next), i++) { c->ismax = False; if(i == 0) { /* master */ nw = mw - 2 * c->border; @@ -66,7 +66,6 @@ tile(void) { resize(c, nx, ny, nw, nh, False); if(n > 1 && th != wah) ny += nh + 2 * c->border; - i++; } }