diff options
| author | Anselm R. Garbe <arg@10kloc.org> | 2006-09-05 18:04:22 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <arg@10kloc.org> | 2006-09-05 18:04:22 +0200 |
| commit | e1315fd40cf7f3df911e1b4f6876c47ce1feb61c (patch) | |
| tree | 55888ec9d6a23aafbbcadde91ecde751ca1ca2f1 /view.c | |
| parent | fixing zoom (diff) | |
| download | dwm-e1315fd40cf7f3df911e1b4f6876c47ce1feb61c.tar.gz dwm-e1315fd40cf7f3df911e1b4f6876c47ce1feb61c.zip | |
this makes sure the issue mentioned by sander
Diffstat (limited to '')
| -rw-r--r-- | view.c | 10 |
1 files changed, 8 insertions, 2 deletions
| @@ -317,8 +317,14 @@ zoom(Arg *arg) | |||
| 317 | if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized) | 317 | if(!sel || sel->isfloat || n < 2 || (arrange != dotile) || maximized) |
| 318 | return; | 318 | return; |
| 319 | 319 | ||
| 320 | if((c = sel) == getnext(clients)) | 320 | /* this is somewhat tricky, it asserts to only zoom tiled clients */ |
| 321 | for(c = getnext(c->next); c && c->isfloat; c = getnext(c->next)); | 321 | for(c = clients; c && c->isfloat; c = getnext(c->next)); |
| 322 | if(c) { | ||
| 323 | if(c == sel) | ||
| 324 | for(c = getnext(c->next); c && c->isfloat; c = getnext(c->next)); | ||
| 325 | else | ||
| 326 | c = sel; | ||
| 327 | } | ||
| 322 | if(!c) | 328 | if(!c) |
| 323 | return; | 329 | return; |
| 324 | detach(c); | 330 | detach(c); |
