aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-01-05 22:00:15 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-01-05 22:00:15 +0100
commit6c767072a3afab0ecebaa54b028c4dfea07ccccc (patch)
tree3a11735c7f26a78ff393d8b8f3e0d72152a4b0d8
parente9cfae7aba1c8eafd827854705bf0d11d2de2dfb (diff)
allowing swap() for first master client
-rw-r--r--view.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/view.c b/view.c
index 503f1c2..f2e4040 100644
--- a/view.c
+++ b/view.c
@@ -260,14 +260,14 @@ zoom(Arg *arg) {
for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
n++;
- c = sel;
- if((arrange != dofloat) && c != nexttiled(clients)) {
- detach(c);
- if(clients)
- clients->prev = c;
- c->next = clients;
- clients = c;
- focus(c);
- arrange();
- }
+ if((c = sel) == nexttiled(clients))
+ if(!(c = nexttiled(c->next)))
+ return;
+ detach(c);
+ if(clients)
+ clients->prev = c;
+ c->next = clients;
+ clients = c;
+ focus(c);
+ arrange();
}