diff options
Diffstat (limited to 'client.c')
| -rw-r--r-- | client.c | 9 |
1 files changed, 7 insertions, 2 deletions
| @@ -99,6 +99,13 @@ focus(Client *c) | |||
| 99 | } | 99 | } |
| 100 | } | 100 | } |
| 101 | if(c) { | 101 | if(c) { |
| 102 | if(c->isfloat || arrange == dofloat) { | ||
| 103 | detach(c); | ||
| 104 | if(clients) | ||
| 105 | clients->prev = c; | ||
| 106 | c->next = clients; | ||
| 107 | clients = c; | ||
| 108 | } | ||
| 102 | grabbuttons(c, True); | 109 | grabbuttons(c, True); |
| 103 | drawtitle(c); | 110 | drawtitle(c); |
| 104 | XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); | 111 | XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); |
| @@ -243,8 +250,6 @@ manage(Window w, XWindowAttributes *wa) | |||
| 243 | c->isfloat = trans | 250 | c->isfloat = trans |
| 244 | || (c->maxw && c->minw && | 251 | || (c->maxw && c->minw && |
| 245 | c->maxw == c->minw && c->maxh == c->minh); | 252 | c->maxw == c->minw && c->maxh == c->minh); |
| 246 | if(c->isfloat) | ||
| 247 | c->weight = ntags; | ||
| 248 | 253 | ||
| 249 | if(clients) | 254 | if(clients) |
| 250 | clients->prev = c; | 255 | clients->prev = c; |
