projects
/
suckless
/
dwm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6499fc4
)
sanders toggletag patch is much more elegant
author
Anselm R. Garbe
<arg@10kloc.org>
Tue, 5 Sep 2006 07:37:45 +0000
(09:37 +0200)
committer
Anselm R. Garbe
<arg@10kloc.org>
Tue, 5 Sep 2006 07:37:45 +0000
(09:37 +0200)
tag.c
patch
|
blob
|
history
diff --git
a/tag.c
b/tag.c
index 5337d254347685c78d52768a70325cb2488fc7ba..9e997f9b214334a43ef86f39802e902fd495c516 100644
(file)
--- a/
tag.c
+++ b/
tag.c
@@
-136,6
+136,6
@@
toggletag(Arg *arg)
for(i = 0; i < ntags && !sel->tags[i]; i++);
if(i == ntags)
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);
}