summaryrefslogtreecommitdiffstats
path: root/tag.c
diff options
context:
space:
mode:
Diffstat (limited to 'tag.c')
-rw-r--r--tag.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tag.c b/tag.c
index 798fd0a..fd08853 100644
--- a/tag.c
+++ b/tag.c
@@ -104,7 +104,6 @@ settags(Client *c, Client *trans) {
104 if(!matched) 104 if(!matched)
105 for(i = 0; i < ntags; i++) 105 for(i = 0; i < ntags; i++)
106 c->tags[i] = seltag[i]; 106 c->tags[i] = seltag[i];
107 for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++);
108} 107}
109 108
110void 109void
@@ -116,7 +115,6 @@ tag(Arg *arg) {
116 for(i = 0; i < ntags; i++) 115 for(i = 0; i < ntags; i++)
117 sel->tags[i] = False; 116 sel->tags[i] = False;
118 sel->tags[arg->i] = True; 117 sel->tags[arg->i] = True;
119 sel->weight = arg->i;
120 arrange(); 118 arrange();
121} 119}
122 120
@@ -130,6 +128,5 @@ toggletag(Arg *arg) {
130 for(i = 0; i < ntags && !sel->tags[i]; i++); 128 for(i = 0; i < ntags && !sel->tags[i]; i++);
131 if(i == ntags) 129 if(i == ntags)
132 sel->tags[arg->i] = True; 130 sel->tags[arg->i] = True;
133 sel->weight = (i == ntags) ? arg->i : i;
134 arrange(); 131 arrange();
135} 132}