diff options
| author | Anselm R. Garbe <arg@suckless.org> | 2007-01-05 22:00:15 +0100 |
|---|---|---|
| committer | Anselm R. Garbe <arg@suckless.org> | 2007-01-05 22:00:15 +0100 |
| commit | 6c767072a3afab0ecebaa54b028c4dfea07ccccc (patch) | |
| tree | 3a11735c7f26a78ff393d8b8f3e0d72152a4b0d8 /view.c | |
| parent | prevent pop() if first sel == nexttiled(clients) (diff) | |
| download | dwm-6c767072a3afab0ecebaa54b028c4dfea07ccccc.tar.gz dwm-6c767072a3afab0ecebaa54b028c4dfea07ccccc.zip | |
allowing swap() for first master client
Diffstat (limited to '')
| -rw-r--r-- | view.c | 20 |
1 files changed, 10 insertions, 10 deletions
| @@ -260,14 +260,14 @@ zoom(Arg *arg) { | |||
| 260 | for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) | 260 | for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next)) |
| 261 | n++; | 261 | n++; |
| 262 | 262 | ||
| 263 | c = sel; | 263 | if((c = sel) == nexttiled(clients)) |
| 264 | if((arrange != dofloat) && c != nexttiled(clients)) { | 264 | if(!(c = nexttiled(c->next))) |
| 265 | detach(c); | 265 | return; |
| 266 | if(clients) | 266 | detach(c); |
| 267 | clients->prev = c; | 267 | if(clients) |
| 268 | c->next = clients; | 268 | clients->prev = c; |
| 269 | clients = c; | 269 | c->next = clients; |
| 270 | focus(c); | 270 | clients = c; |
| 271 | arrange(); | 271 | focus(c); |
| 272 | } | 272 | arrange(); |
| 273 | } | 273 | } |
