mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
alttab: fixing crash when clients are on other tags
This commit is contained in:
parent
9a5378440c
commit
b732821f7b
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user