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 *));
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user