Browse Source

applied endless loop prevention on zoom()

main
arg@10ksloc.org 18 years ago
parent
commit
525ef3c178
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      client.c

+ 3
- 1
client.c View File

@ -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…
Cancel
Save