fififif
arg@mig29 unknown
Wed, 22 Nov 2006 16:17:50 +0100
M
tag.c
→
tag.c
@@ -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 @@ return;
for(i = 0; i < ntags; i++) sel->tags[i] = False; sel->tags[arg->i] = True; - sel->weight = arg->i; arrange(); }@@ -130,6 +128,5 @@ sel->tags[arg->i] = !sel->tags[arg->i];
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(); }
M
view.c
→
view.c
@@ -6,39 +6,9 @@
/* 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@@ -247,7 +217,6 @@ seltag[arg->i] = !seltag[arg->i];
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 @@ unsigned int i;
for(i = 0; i < ntags; i++) seltag[i] = True; - reorder(); arrange(); }