aboutsummaryrefslogtreecommitdiffstats
path: root/tag.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-08-29 13:40:09 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-08-29 13:40:09 +0200
commit9d739090750ffb3b3a64e86e2331215b8901c360 (patch)
tree6670ab450bf962433c148a6ff30107a411b6fb27 /tag.c
parent016c54196e682ae8658854febb746b0437a010dc (diff)
downloaddwm-9d739090750ffb3b3a64e86e2331215b8901c360.tar.gz
still something wrong with reorder()
Diffstat (limited to 'tag.c')
-rw-r--r--tag.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tag.c b/tag.c
index 7bc4da0..a2e1c89 100644
--- a/tag.c
+++ b/tag.c
@@ -106,6 +106,8 @@ settags(Client *c)
if(!matched)
for(i = 0; i < ntags; i++)
c->tags[i] = seltag[i];
+ for(i = 0; i < ntags && !c->tags[i]; i++);
+ c->weight = i;
}
void
@@ -120,8 +122,6 @@ tag(Arg *arg)
sel->tags[i] = False;
sel->tags[arg->i] = True;
settitle(sel);
- detach(sel);
- attach(sel);
if(!isvisible(sel))
arrange(NULL);
else
@@ -141,8 +141,6 @@ toggletag(Arg *arg)
if(i == ntags)
sel->tags[arg->i] = True;
settitle(sel);
- detach(sel);
- attach(sel);
if(!isvisible(sel))
arrange(NULL);
else