making it more sure that transient checks will work in any case
5052c538
1 file(s) · +4 −3
| 148 | 148 | ||
| 149 | 149 | void |
|
| 150 | 150 | manage(Window w, XWindowAttributes *wa) { |
|
| 151 | - | Client *c; |
|
| 151 | + | Client *c, *t; |
|
| 152 | 152 | Window trans; |
|
| 153 | 153 | ||
| 154 | 154 | c = emallocz(sizeof(Client)); |
|
| 181 | 181 | grabbuttons(c, False); |
|
| 182 | 182 | XSetWindowBorder(dpy, c->win, dc.norm[ColBorder]); |
|
| 183 | 183 | updatetitle(c); |
|
| 184 | - | settags(c, getclient(trans)); |
|
| 184 | + | t = getclient(trans); |
|
| 185 | + | settags(c, t); |
|
| 185 | 186 | if(!c->isfloat) |
|
| 186 | - | c->isfloat = trans || c->isfixed; |
|
| 187 | + | c->isfloat = (t != 0) || c->isfixed; |
|
| 187 | 188 | if(clients) |
|
| 188 | 189 | clients->prev = c; |
|
| 189 | 190 | c->next = clients; |
|