comparison tag.c @ 379:fc279cd6c7be

fix client position in list also on tag and toggletag
author Anselm R. Garbe <arg@10kloc.org>
date Tue, 29 Aug 2006 09:25:14 +0200
parents a1901753deef
children b00cc483d13b
comparison
equal deleted inserted replaced
378:83576f5f0a90 379:fc279cd6c7be
118 118
119 for(i = 0; i < ntags; i++) 119 for(i = 0; i < ntags; i++)
120 sel->tags[i] = False; 120 sel->tags[i] = False;
121 sel->tags[arg->i] = True; 121 sel->tags[arg->i] = True;
122 settitle(sel); 122 settitle(sel);
123 detach(sel);
124 attach(sel);
123 if(!isvisible(sel)) 125 if(!isvisible(sel))
124 arrange(NULL); 126 arrange(NULL);
125 else 127 else
126 drawstatus(); 128 drawstatus();
127 } 129 }
137 sel->tags[arg->i] = !sel->tags[arg->i]; 139 sel->tags[arg->i] = !sel->tags[arg->i];
138 for(i = 0; i < ntags && !sel->tags[i]; i++); 140 for(i = 0; i < ntags && !sel->tags[i]; i++);
139 if(i == ntags) 141 if(i == ntags)
140 sel->tags[arg->i] = True; 142 sel->tags[arg->i] = True;
141 settitle(sel); 143 settitle(sel);
144 detach(sel);
145 attach(sel);
142 if(!isvisible(sel)) 146 if(!isvisible(sel))
143 arrange(NULL); 147 arrange(NULL);
144 else 148 else
145 drawstatus(); 149 drawstatus();
146 } 150 }