mirror of git://git.suckless.org/dwm
applied endless loop prevention on zoom()
This commit is contained in:
parent
5ef6ef1bac
commit
525ef3c178
4
client.c
4
client.c
|
@ -469,9 +469,11 @@ zoom(Arg *arg)
|
||||||
if(!sel || (arrange != dotile) || sel->isfloat)
|
if(!sel || (arrange != dotile) || sel->isfloat)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if(sel == getnext(clients) && sel->next) {
|
if(sel == getnext(clients)) {
|
||||||
if((c = getnext(sel->next)))
|
if((c = getnext(sel->next)))
|
||||||
sel = c;
|
sel = c;
|
||||||
|
else
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* pop */
|
/* pop */
|
||||||
|
|
Loading…
Reference in New Issue