diff options
| author | arg@10ksloc.org <unknown> | 2006-07-21 07:37:52 +0200 |
|---|---|---|
| committer | arg@10ksloc.org <unknown> | 2006-07-21 07:37:52 +0200 |
| commit | cd8d8e120857329800e93e22572e35560d1b0e80 (patch) | |
| tree | d8558f0a5e9c80c63947562f53752e71602ed241 /client.c | |
| parent | applied sanders no_sizehints for tiled mode patch (thx!) (diff) | |
| download | dwm-cd8d8e120857329800e93e22572e35560d1b0e80.tar.gz dwm-cd8d8e120857329800e93e22572e35560d1b0e80.zip | |
sanitization of several clunky stuff, removed heretag (rarely of use), simplified pop(), changed shortcuts to always contain MODKEY
Diffstat (limited to 'client.c')
| -rw-r--r-- | client.c | 17 |
1 files changed, 15 insertions, 2 deletions
| @@ -476,7 +476,7 @@ unmanage(Client *c) | |||
| 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; |
| @@ -486,6 +486,19 @@ zoom(Arg *arg) | |||
| 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 | } |
