tallowing swap() for first master client - dwm - [fork] customized build of dwm, the dynamic window manager
 (HTM) git clone git://src.adamsgaard.dk/dwm
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 6c767072a3afab0ecebaa54b028c4dfea07ccccc
 (DIR) parent e9cfae7aba1c8eafd827854705bf0d11d2de2dfb
 (HTM) Author: Anselm R. Garbe <arg@suckless.org>
       Date:   Fri,  5 Jan 2007 22:00:15 +0100
       
       allowing swap() for first master client
       Diffstat:
         M view.c                              |      20 ++++++++++----------
       
       1 file changed, 10 insertions(+), 10 deletions(-)
       ---
 (DIR) diff --git a/view.c b/view.c
       t@@ -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();
        }