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 /view.c | |
parent | fd00b3a18620c70721c4c4d9f0169e06b9ce4437 (diff) | |
download | dwm-a33150eb4b041b243d0493cd4b53bfbcace3299e.tar.gz |
no this is better
Diffstat (limited to 'view.c')
-rw-r--r-- | view.c | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -18,6 +18,15 @@ minclient() return min; } +static void +pop(Client *c) +{ + detach(c); + if(clients) + clients->prev = c; + c->next = clients; + clients = c; +} static void reorder() @@ -223,6 +232,7 @@ restack() return; } if(sel->isfloat || arrange == dofloat) { + pop(sel); XRaiseWindow(dpy, sel->win); XRaiseWindow(dpy, sel->twin); } @@ -297,10 +307,7 @@ zoom(Arg *arg) if((c = sel) == nexttiled(clients)) if(!(c = nexttiled(c->next))) return; - detach(c); - c->next = clients; - clients->prev = c; - clients = c; + pop(c); focus(c); arrange(NULL); } |