maybe this might work
e8389a4c
3 file(s) · +9 −4
| 243 | 243 | c->isfloat = trans |
|
| 244 | 244 | || (c->maxw && c->minw && |
|
| 245 | 245 | c->maxw == c->minw && c->maxh == c->minh); |
|
| 246 | + | if(c->isfloat) |
|
| 247 | + | c->weight = ntags; |
|
| 246 | 248 | ||
| 247 | 249 | if(clients) |
|
| 248 | 250 | clients->prev = c; |
| 1 | 1 | # dwm version |
|
| 2 | - | VERSION = 1.4 |
|
| 2 | + | VERSION = 1.5 |
|
| 3 | 3 | ||
| 4 | 4 | # Customize below to fit your system |
|
| 5 | 5 |
| 110 | 110 | if(!matched) |
|
| 111 | 111 | for(i = 0; i < ntags; i++) |
|
| 112 | 112 | c->tags[i] = seltag[i]; |
|
| 113 | - | for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++); |
|
| 113 | + | if(!c->isfloat) |
|
| 114 | + | for(c->weight = 0; c->weight < ntags && !c->tags[c->weight]; c->weight++); |
|
| 114 | 115 | } |
|
| 115 | 116 | ||
| 116 | 117 | void |
|
| 124 | 125 | for(i = 0; i < ntags; i++) |
|
| 125 | 126 | sel->tags[i] = False; |
|
| 126 | 127 | sel->tags[arg->i] = True; |
|
| 127 | - | sel->weight = arg->i; |
|
| 128 | + | if(!sel->isfloat) |
|
| 129 | + | sel->weight = arg->i; |
|
| 128 | 130 | arrange(NULL); |
|
| 129 | 131 | } |
|
| 130 | 132 | ||
| 140 | 142 | for(i = 0; i < ntags && !sel->tags[i]; i++); |
|
| 141 | 143 | if(i == ntags) |
|
| 142 | 144 | sel->tags[arg->i] = True; |
|
| 143 | - | sel->weight = (i == ntags) ? arg->i : i; |
|
| 145 | + | if(!sel->isfloat) |
|
| 146 | + | sel->weight = (i == ntags) ? arg->i : i; |
|
| 144 | 147 | arrange(NULL); |
|
| 145 | 148 | } |
|