X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=tile.c;h=8075e554c3626ca872468ac157ea2bf935752a5f;hb=b3d7e07f18f0f69f8c3b3542615da62dfc4c6175;hp=a9bc0f51232b02e035060b7346fe2e6b65dc77cb;hpb=5cc27f1b3c61df4f048cdac9e0feb31a2dd80c63;p=dwm.git diff --git a/tile.c b/tile.c index a9bc0f5..8075e55 100644 --- 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(); }