summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2022-10-13 12:34:09 +0200
committerbakkeby <[email protected]>2022-10-13 12:34:09 +0200
commitb732821f7b5458ae1bb2476da5441942ec8fa398 (patch)
tree1d57d7c8b8b7b8eecebd4dc4706cef4569b9e295
parent9a5378440c57718e6d219418eee4fd4f90704e74 (diff)
downloaddwm-flexipatch-b732821f7b5458ae1bb2476da5441942ec8fa398.tar.gz
dwm-flexipatch-b732821f7b5458ae1bb2476da5441942ec8fa398.zip
alttab: fixing crash when clients are on other tags
-rw-r--r--patch/alttab.c3
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);