applied endless loop prevention on zoom()
525ef3c1
1 file(s) · +3 −1
| 469 | 469 | if(!sel || (arrange != dotile) || sel->isfloat) |
|
| 470 | 470 | return; |
|
| 471 | 471 | ||
| 472 | - | if(sel == getnext(clients) && sel->next) { |
|
| 472 | + | if(sel == getnext(clients)) { |
|
| 473 | 473 | if((c = getnext(sel->next))) |
|
| 474 | 474 | sel = c; |
|
| 475 | + | else |
|
| 476 | + | return; |
|
| 475 | 477 | } |
|
| 476 | 478 | ||
| 477 | 479 | /* pop */ |