X-Git-Url: https://git.xinqibao.xyz/dwm.git/blobdiff_plain/5cc27f1b3c61df4f048cdac9e0feb31a2dd80c63..b3d7e07f18f0f69f8c3b3542615da62dfc4c6175:/tile.c?ds=sidebyside 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(); }