JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added some new convenience functions
[dwm.git] / tile.c
diff --git a/tile.c b/tile.c
index a9bc0f5..8075e55 100644 (file)
--- a/tile.c
+++ b/tile.c
@@ -3,15 +3,17 @@
  */
 #include "dwm.h"
 
+unsigned int master = MASTER;
+unsigned int nmaster = NMASTER;
+
 /* static */
 
 static void
 togglemax(Client *c) {
        XEvent ev;
-               
+
        if(c->isfixed)
                return;
-
        if((c->ismax = !c->ismax)) {
                c->rx = c->x;
                c->ry = c->y;
@@ -123,10 +125,7 @@ zoom(Arg *arg) {
                if(!(c = nextmanaged(c->next)))
                        return;
        detach(c);
-       if(clients)
-               clients->prev = c;
-       c->next = clients;
-       clients = c;
+       attach(c);
        focus(c);
        arrange();
 }