equal
deleted
inserted
replaced
474 } |
474 } |
475 |
475 |
476 void |
476 void |
477 zoom(Arg *arg) |
477 zoom(Arg *arg) |
478 { |
478 { |
479 Client *c; |
479 Client *c, **l; |
480 |
480 |
481 if(!sel) |
481 if(!sel) |
482 return; |
482 return; |
483 |
483 |
484 if(sel == getnext(clients, tsel) && sel->next) { |
484 if(sel == getnext(clients, tsel) && sel->next) { |
485 if((c = getnext(sel->next, tsel))) |
485 if((c = getnext(sel->next, tsel))) |
486 sel = c; |
486 sel = c; |
487 } |
487 } |
488 |
488 |
489 pop(sel); |
489 /* pop */ |
|
490 for(l = &clients; *l && *l != sel; l = &(*l)->next); |
|
491 if(sel->prev) |
|
492 sel->prev->next = sel->next; |
|
493 if(sel->next) |
|
494 sel->next->prev = sel->prev; |
|
495 *l = sel->next; |
|
496 |
|
497 sel->prev = NULL; |
|
498 if(clients) |
|
499 clients->prev = sel; |
|
500 sel->next = clients; |
|
501 clients = sel; |
|
502 arrange(NULL); |
490 focus(sel); |
503 focus(sel); |
491 } |
504 } |