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 /client.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 '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; |
