aewl

diff tag.c @ 381:b00cc483d13b

still something wrong with reorder()
author Anselm R. Garbe <arg@10kloc.org>
date Tue, 29 Aug 2006 13:40:09 +0200
parents fc279cd6c7be
children 2ec9cead84a7
line diff
     1.1 --- a/tag.c	Tue Aug 29 09:57:57 2006 +0200
     1.2 +++ b/tag.c	Tue Aug 29 13:40:09 2006 +0200
     1.3 @@ -106,6 +106,8 @@
     1.4  	if(!matched)
     1.5  		for(i = 0; i < ntags; i++)
     1.6  			c->tags[i] = seltag[i];
     1.7 +	for(i = 0; i < ntags && !c->tags[i]; i++);
     1.8 +	c->weight = i;
     1.9  }
    1.10  
    1.11  void
    1.12 @@ -120,8 +122,6 @@
    1.13  		sel->tags[i] = False;
    1.14  	sel->tags[arg->i] = True;
    1.15  	settitle(sel);
    1.16 -	detach(sel);
    1.17 -	attach(sel);
    1.18  	if(!isvisible(sel))
    1.19  		arrange(NULL);
    1.20  	else
    1.21 @@ -141,8 +141,6 @@
    1.22  	if(i == ntags)
    1.23  		sel->tags[arg->i] = True;
    1.24  	settitle(sel);
    1.25 -	detach(sel);
    1.26 -	attach(sel);
    1.27  	if(!isvisible(sel))
    1.28  		arrange(NULL);
    1.29  	else