diff options
| author | bakkeby <[email protected]> | 2022-10-13 12:34:09 +0200 |
|---|---|---|
| committer | bakkeby <[email protected]> | 2022-10-13 12:34:09 +0200 |
| commit | b732821f7b5458ae1bb2476da5441942ec8fa398 (patch) | |
| tree | 1d57d7c8b8b7b8eecebd4dc4706cef4569b9e295 | |
| parent | 9a5378440c57718e6d219418eee4fd4f90704e74 (diff) | |
| download | dwm-flexipatch-b732821f7b5458ae1bb2476da5441942ec8fa398.tar.gz dwm-flexipatch-b732821f7b5458ae1bb2476da5441942ec8fa398.zip | |
alttab: fixing crash when clients are on other tags
| -rw-r--r-- | patch/alttab.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/patch/alttab.c b/patch/alttab.c index 861ab2f..f6775d8 100644 --- a/patch/alttab.c +++ b/patch/alttab.c @@ -168,13 +168,14 @@ alttabstart(const Arg *arg) altsnext = (Client **) malloc(ntabs * sizeof(Client *)); - for (i = 0, c = m->stack; c; c = c->snext, i++) { + for (i = 0, c = m->stack; c; c = c->snext) { if (!ISVISIBLE(c)) continue; if (HIDDEN(c)) continue; altsnext[i] = c; + i++; } drawtab(ntabs, 1, m); |
