# HG changeset patch # User arg@mig29 # Date 1164208670 -3600 # Node ID 797e27162b4349ffa948cc5c1127010265e05aa7 # Parent 427708bf5f369df03e274a70eb3e07de9e0d9d67 fififif diff -r 427708bf5f36 -r 797e27162b43 dwm.h --- a/dwm.h Wed Nov 22 14:57:09 2006 +0100 +++ b/dwm.h Wed Nov 22 16:17:50 2006 +0100 @@ -82,7 +82,7 @@ int basew, baseh, incw, inch, maxw, maxh, minw, minh; int grav; long flags; - unsigned int border, weight; + unsigned int border; Bool isfloat, isfixed, ismax; Bool *tags; Client *next; diff -r 427708bf5f36 -r 797e27162b43 tag.c --- a/tag.c Wed Nov 22 14:57:09 2006 +0100 +++ b/tag.c Wed Nov 22 16:17:50 2006 +0100 @@ -104,7 +104,6 @@ if(!matched) for(i = 0; i < ntags; i++) c->tags[i] = seltag[i]; - for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++); } void @@ -116,7 +115,6 @@ for(i = 0; i < ntags; i++) sel->tags[i] = False; sel->tags[arg->i] = True; - sel->weight = arg->i; arrange(); } @@ -130,6 +128,5 @@ for(i = 0; i < ntags && !sel->tags[i]; i++); if(i == ntags) sel->tags[arg->i] = True; - sel->weight = (i == ntags) ? arg->i : i; arrange(); } diff -r 427708bf5f36 -r 797e27162b43 view.c --- a/view.c Wed Nov 22 14:57:09 2006 +0100 +++ b/view.c Wed Nov 22 16:17:50 2006 +0100 @@ -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 @@ 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 @@ for(i = 0; i < ntags; i++) seltag[i] = False; seltag[arg->i] = True; - reorder(); arrange(); } @@ -268,7 +236,6 @@ for(i = 0; i < ntags; i++) seltag[i] = True; - reorder(); arrange(); }