diff options
| author | Anselm R. Garbe <arg@10kloc.org> | 2006-09-06 15:36:42 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <arg@10kloc.org> | 2006-09-06 15:36:42 +0200 |
| commit | a33150eb4b041b243d0493cd4b53bfbcace3299e (patch) | |
| tree | 706bc86a80a2ffe281e12935f29508ef9597d5f3 | |
| parent | does this preserve z order for anthony? (diff) | |
| download | dwm-a33150eb4b041b243d0493cd4b53bfbcace3299e.tar.gz dwm-a33150eb4b041b243d0493cd4b53bfbcace3299e.zip | |
no this is better
| -rw-r--r-- | client.c | 7 | ||||
| -rw-r--r-- | view.c | 15 |
2 files changed, 11 insertions, 11 deletions
| @@ -99,13 +99,6 @@ 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 | } | ||
| 109 | grabbuttons(c, True); | 102 | grabbuttons(c, True); |
| 110 | drawtitle(c); | 103 | drawtitle(c); |
| 111 | XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); | 104 | XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); |
| @@ -18,6 +18,15 @@ minclient() | |||
| 18 | return min; | 18 | return min; |
| 19 | } | 19 | } |
| 20 | 20 | ||
| 21 | static void | ||
| 22 | pop(Client *c) | ||
| 23 | { | ||
| 24 | detach(c); | ||
| 25 | if(clients) | ||
| 26 | clients->prev = c; | ||
| 27 | c->next = clients; | ||
| 28 | clients = c; | ||
| 29 | } | ||
| 21 | 30 | ||
| 22 | static void | 31 | static void |
| 23 | reorder() | 32 | reorder() |
| @@ -223,6 +232,7 @@ restack() | |||
| 223 | return; | 232 | return; |
| 224 | } | 233 | } |
| 225 | if(sel->isfloat || arrange == dofloat) { | 234 | if(sel->isfloat || arrange == dofloat) { |
| 235 | pop(sel); | ||
| 226 | XRaiseWindow(dpy, sel->win); | 236 | XRaiseWindow(dpy, sel->win); |
| 227 | XRaiseWindow(dpy, sel->twin); | 237 | XRaiseWindow(dpy, sel->twin); |
| 228 | } | 238 | } |
| @@ -297,10 +307,7 @@ zoom(Arg *arg) | |||
| 297 | if((c = sel) == nexttiled(clients)) | 307 | if((c = sel) == nexttiled(clients)) |
| 298 | if(!(c = nexttiled(c->next))) | 308 | if(!(c = nexttiled(c->next))) |
| 299 | return; | 309 | return; |
| 300 | detach(c); | 310 | pop(c); |
| 301 | c->next = clients; | ||
| 302 | clients->prev = c; | ||
| 303 | clients = c; | ||
| 304 | focus(c); | 311 | focus(c); |
| 305 | arrange(NULL); | 312 | arrange(NULL); |
| 306 | } | 313 | } |
