X-Git-Url: https://git.armaanb.net/?a=blobdiff_plain;f=tile.c;h=7915441d05f2e00e9a6b809ee08251965ed924c3;hb=a92cf496c18189f9cbc7c1d7f8edcebbd1d7ff99;hp=114e84c2c89ee90cd9813fa6d7137a9f2965ffa4;hpb=cc7970010bd78e700d790b12617a50c9f9fd45a8;p=dwm.git 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++; } }