forked from mirror/dwm
sanders toggletag patch is much more elegant
This commit is contained in:
parent
6499fc4f93
commit
eac04882b4
1 changed files with 1 additions and 1 deletions
2
tag.c
2
tag.c
|
@ -136,6 +136,6 @@ toggletag(Arg *arg)
|
||||||
for(i = 0; i < ntags && !sel->tags[i]; i++);
|
for(i = 0; i < ntags && !sel->tags[i]; i++);
|
||||||
if(i == ntags)
|
if(i == ntags)
|
||||||
sel->tags[arg->i] = True;
|
sel->tags[arg->i] = True;
|
||||||
for(sel->weight = 0; sel->weight < ntags && !sel->tags[sel->weight]; sel->weight++);
|
sel->weight = (i == ntags) ? arg->i : i;
|
||||||
arrange(NULL);
|
arrange(NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue