diff options
| author | Anselm R. Garbe <arg@10kloc.org> | 2006-09-06 15:30:28 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <arg@10kloc.org> | 2006-09-06 15:30:28 +0200 |
| commit | fd00b3a18620c70721c4c4d9f0169e06b9ce4437 (patch) | |
| tree | 8d7bac8a49663a2bfd119ad51a996498f4c2bdfc /tag.c | |
| parent | maybe this might work (diff) | |
| download | dwm-fd00b3a18620c70721c4c4d9f0169e06b9ce4437.tar.gz dwm-fd00b3a18620c70721c4c4d9f0169e06b9ce4437.zip | |
does this preserve z order for anthony?
Diffstat (limited to 'tag.c')
| -rw-r--r-- | tag.c | 9 |
1 files changed, 3 insertions, 6 deletions
| @@ -110,8 +110,7 @@ settags(Client *c, Client *trans) | |||
| 110 | if(!matched) | 110 | if(!matched) |
| 111 | for(i = 0; i < ntags; i++) | 111 | for(i = 0; i < ntags; i++) |
| 112 | c->tags[i] = seltag[i]; | 112 | c->tags[i] = seltag[i]; |
| 113 | if(!c->isfloat) | 113 | for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++); |
| 114 | for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++); | ||
| 115 | } | 114 | } |
| 116 | 115 | ||
| 117 | void | 116 | void |
| @@ -125,8 +124,7 @@ tag(Arg *arg) | |||
| 125 | for(i = 0; i < ntags; i++) | 124 | for(i = 0; i < ntags; i++) |
| 126 | sel->tags[i] = False; | 125 | sel->tags[i] = False; |
| 127 | sel->tags[arg->i] = True; | 126 | sel->tags[arg->i] = True; |
| 128 | if(!sel->isfloat) | 127 | sel->weight = arg->i; |
| 129 | sel->weight = arg->i; | ||
| 130 | arrange(NULL); | 128 | arrange(NULL); |
| 131 | } | 129 | } |
| 132 | 130 | ||
| @@ -142,7 +140,6 @@ toggletag(Arg *arg) | |||
| 142 | for(i = 0; i < ntags && !sel->tags[i]; i++); | 140 | for(i = 0; i < ntags && !sel->tags[i]; i++); |
| 143 | if(i == ntags) | 141 | if(i == ntags) |
| 144 | sel->tags[arg->i] = True; | 142 | sel->tags[arg->i] = True; |
| 145 | if(!sel->isfloat) | 143 | sel->weight = (i == ntags) ? arg->i : i; |
| 146 | sel->weight = (i == ntags) ? arg->i : i; | ||
| 147 | arrange(NULL); | 144 | arrange(NULL); |
| 148 | } | 145 | } |
