alttab: fixing crash when clients are on other tags

This commit is contained in:
bakkeby 2022-10-13 12:34:09 +02:00
parent 9a5378440c
commit b732821f7b

View File

@ -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);