From 6c767072a3afab0ecebaa54b028c4dfea07ccccc Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Fri, 5 Jan 2007 22:00:15 +0100 Subject: allowing swap() for first master client --- view.c | 20 ++++++++++---------- 1 file 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(); } -- cgit 1.4.1-2-gfad0 n value='hlt' selected='selected'>hlt Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.Kartik K. Agaram <vc@akkartik.com>
about summary refs log blame commit diff stats
path: root/060immutable.cc
blob: 1ba5aa2440d735059b60b66e382267e240fd67a0 (plain) (tree)