equal
deleted
inserted
replaced
108 XFree(ch.res_name); |
108 XFree(ch.res_name); |
109 } |
109 } |
110 if(!matched) |
110 if(!matched) |
111 for(i = 0; i < ntags; i++) |
111 for(i = 0; i < ntags; i++) |
112 c->tags[i] = seltag[i]; |
112 c->tags[i] = seltag[i]; |
113 for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++); |
113 if(!c->isfloat) |
|
114 for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++); |
114 } |
115 } |
115 |
116 |
116 void |
117 void |
117 tag(Arg *arg) |
118 tag(Arg *arg) |
118 { |
119 { |
122 return; |
123 return; |
123 |
124 |
124 for(i = 0; i < ntags; i++) |
125 for(i = 0; i < ntags; i++) |
125 sel->tags[i] = False; |
126 sel->tags[i] = False; |
126 sel->tags[arg->i] = True; |
127 sel->tags[arg->i] = True; |
127 sel->weight = arg->i; |
128 if(!sel->isfloat) |
|
129 sel->weight = arg->i; |
128 arrange(NULL); |
130 arrange(NULL); |
129 } |
131 } |
130 |
132 |
131 void |
133 void |
132 toggletag(Arg *arg) |
134 toggletag(Arg *arg) |
138 |
140 |
139 sel->tags[arg->i] = !sel->tags[arg->i]; |
141 sel->tags[arg->i] = !sel->tags[arg->i]; |
140 for(i = 0; i < ntags && !sel->tags[i]; i++); |
142 for(i = 0; i < ntags && !sel->tags[i]; i++); |
141 if(i == ntags) |
143 if(i == ntags) |
142 sel->tags[arg->i] = True; |
144 sel->tags[arg->i] = True; |
143 sel->weight = (i == ntags) ? arg->i : i; |
145 if(!sel->isfloat) |
|
146 sel->weight = (i == ntags) ? arg->i : i; |
144 arrange(NULL); |
147 arrange(NULL); |
145 } |
148 } |