diff options
| author | Anselm R. Garbe <arg@10kloc.org> | 2006-09-06 13:56:46 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <arg@10kloc.org> | 2006-09-06 13:56:46 +0200 |
| commit | e8389a4cc0f1c35bcb7e7646102bd6d6a830207e (patch) | |
| tree | 589dfd38f19f0d82842d2add92e5af5278f52e85 | |
| parent | Added tag 1.4 for changeset 3cff9403766bf83a9fc2a0aef230115d68de2a8e (diff) | |
| download | dwm-e8389a4cc0f1c35bcb7e7646102bd6d6a830207e.tar.gz dwm-e8389a4cc0f1c35bcb7e7646102bd6d6a830207e.zip | |
maybe this might work
| -rw-r--r-- | client.c | 2 | ||||
| -rw-r--r-- | config.mk | 2 | ||||
| -rw-r--r-- | tag.c | 9 |
3 files changed, 9 insertions, 4 deletions
| @@ -243,6 +243,8 @@ manage(Window w, XWindowAttributes *wa) | |||
| 243 | c->isfloat = trans | 243 | c->isfloat = trans |
| 244 | || (c->maxw && c->minw && | 244 | || (c->maxw && c->minw && |
| 245 | c->maxw == c->minw && c->maxh == c->minh); | 245 | c->maxw == c->minw && c->maxh == c->minh); |
| 246 | if(c->isfloat) | ||
| 247 | c->weight = ntags; | ||
| 246 | 248 | ||
| 247 | if(clients) | 249 | if(clients) |
| 248 | clients->prev = c; | 250 | clients->prev = c; |
| @@ -1,5 +1,5 @@ | |||
| 1 | # dwm version | 1 | # dwm version |
| 2 | VERSION = 1.4 | 2 | VERSION = 1.5 |
| 3 | 3 | ||
| 4 | # Customize below to fit your system | 4 | # Customize below to fit your system |
| 5 | 5 | ||
| @@ -110,7 +110,8 @@ 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 | 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 | void | 117 | void |
| @@ -124,7 +125,8 @@ tag(Arg *arg) | |||
| 124 | for(i = 0; i < ntags; i++) | 125 | for(i = 0; i < ntags; i++) |
| 125 | sel->tags[i] = False; | 126 | sel->tags[i] = False; |
| 126 | sel->tags[arg->i] = True; | 127 | sel->tags[arg->i] = True; |
| 127 | sel->weight = arg->i; | 128 | if(!sel->isfloat) |
| 129 | sel->weight = arg->i; | ||
| 128 | arrange(NULL); | 130 | arrange(NULL); |
| 129 | } | 131 | } |
| 130 | 132 | ||
| @@ -140,6 +142,7 @@ toggletag(Arg *arg) | |||
| 140 | for(i = 0; i < ntags && !sel->tags[i]; i++); | 142 | for(i = 0; i < ntags && !sel->tags[i]; i++); |
| 141 | if(i == ntags) | 143 | if(i == ntags) |
| 142 | sel->tags[arg->i] = True; | 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 | arrange(NULL); | 147 | arrange(NULL); |
| 145 | } | 148 | } |
