mirror of
https://git.suckless.org/dwm
synced 2024-12-27 03:16:32 +00:00
hotfix
This commit is contained in:
parent
1ddfc571ae
commit
25947bcfdb
1 changed files with 3 additions and 3 deletions
6
dwm.c
6
dwm.c
|
@ -600,14 +600,14 @@ detach(Client *c) {
|
||||||
|
|
||||||
void
|
void
|
||||||
detachstack(Client *c) {
|
detachstack(Client *c) {
|
||||||
Client **tc;
|
Client **tc, *t;
|
||||||
|
|
||||||
for(tc = &c->mon->stack; *tc && *tc != c; tc = &(*tc)->snext);
|
for(tc = &c->mon->stack; *tc && *tc != c; tc = &(*tc)->snext);
|
||||||
*tc = c->snext;
|
*tc = c->snext;
|
||||||
|
|
||||||
if(c == c->mon->sel) {
|
if(c == c->mon->sel) {
|
||||||
for(*tc = c->mon->stack; *tc && !ISVISIBLE((*tc)); *tc = (*tc)->snext);
|
for(t = c->mon->stack; t && !ISVISIBLE(t); t = t->snext);
|
||||||
c->mon->sel = *tc;
|
c->mon->sel = t;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue