diff options
| author | Anselm R. Garbe <arg@10kloc.org> | 2006-09-05 09:37:45 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <arg@10kloc.org> | 2006-09-05 09:37:45 +0200 |
| commit | eac04882b40595d724f4578b5acec5f22df570e3 (patch) | |
| tree | 15da001ca70bb287f6571d63a036714179bd9df2 | |
| parent | I really need column growing, now pushing upstream (diff) | |
| download | dwm-eac04882b40595d724f4578b5acec5f22df570e3.tar.gz dwm-eac04882b40595d724f4578b5acec5f22df570e3.zip | |
sanders toggletag patch is much more elegant
Diffstat (limited to '')
| -rw-r--r-- | tag.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -136,6 +136,6 @@ toggletag(Arg *arg) | |||
| 136 | for(i = 0; i < ntags && !sel->tags[i]; i++); | 136 | for(i = 0; i < ntags && !sel->tags[i]; i++); |
| 137 | if(i == ntags) | 137 | if(i == ntags) |
| 138 | sel->tags[arg->i] = True; | 138 | sel->tags[arg->i] = True; |
| 139 | for(sel->weight = 0; sel->weight < ntags && !sel->tags[sel->weight]; sel->weight++); | 139 | sel->weight = (i == ntags) ? arg->i : i; |
| 140 | arrange(NULL); | 140 | arrange(NULL); |
| 141 | } | 141 | } |
