X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=view.c;h=e7d7a99f82dc33abfcf8d59ff363c590f0b2fecf;hb=321e8d51edb8fe433e8e2ce8d5463c6999cc0576;hp=bd43da90477072b045858436dc1cdc0256fffabe;hpb=78f4b51757430dcbd807063794cd86f81fc686a5;p=dwm.git diff --git a/view.c b/view.c index bd43da9..e7d7a99 100644 --- a/view.c +++ b/view.c @@ -6,42 +6,12 @@ /* static */ static Client * -minclient(void) { - Client *c, *min; - - if((clients && clients->isfloat) || arrange == dofloat) - return clients; /* don't touch floating order */ - for(min = c = clients; c; c = c->next) - if(c->weight < min->weight) - min = c; - return min; -} - -static Client * nexttiled(Client *c) { for(c = getnext(c); c && c->isfloat; c = getnext(c->next)); return c; } static void -reorder(void) { - Client *c, *newclients, *tail; - - newclients = tail = NULL; - while((c = minclient())) { - detach(c); - if(tail) { - c->prev = tail; - tail->next = c; - tail = c; - } - else - tail = newclients = c; - } - clients = newclients; -} - -static void togglemax(Client *c) { XEvent ev; @@ -247,7 +217,6 @@ toggleview(Arg *arg) { for(i = 0; i < ntags && !seltag[i]; i++); if(i == ntags) seltag[arg->i] = True; /* cannot toggle last view */ - reorder(); arrange(); } @@ -258,7 +227,6 @@ view(Arg *arg) { for(i = 0; i < ntags; i++) seltag[i] = False; seltag[arg->i] = True; - reorder(); arrange(); } @@ -268,7 +236,6 @@ viewall(Arg *arg) { for(i = 0; i < ntags; i++) seltag[i] = True; - reorder(); arrange(); }