X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=scrotwm.c;h=b0c116d2770b3c4e23cbbd1862af3ef772d0c620;hb=a8c625928eca5ad3c8af0f22fb25f4aa85ddaf8c;hp=c7ce16a8e5fab0455d8ac292db768ffbbd443446;hpb=4762763ca6221aa155d178cc6b719afc1a6fec71;p=spectrwm.git diff --git a/scrotwm.c b/scrotwm.c index c7ce16a..b0c116d 100644 --- a/scrotwm.c +++ b/scrotwm.c @@ -2559,11 +2559,12 @@ void stack(void) { struct swm_geometry g; struct swm_region *r; - int i; + int i, j; DNPRINTF(SWM_D_STACK, "stack\n"); for (i = 0; i < ScreenCount(display); i++) { + j = 0; TAILQ_FOREACH(r, &screens[i].rl, entry) { DNPRINTF(SWM_D_STACK, "stacking workspace %d " "(screen %d, region %d)\n", r->ws->idx, i, j++);