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 *)); 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)) if (!ISVISIBLE(c))
continue; continue;
if (HIDDEN(c)) if (HIDDEN(c))
continue; continue;
altsnext[i] = c; altsnext[i] = c;
i++;
} }
drawtab(ntabs, 1, m); drawtab(ntabs, 1, m);