summaryrefslogtreecommitdiffstats
path: root/view.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-09-06 15:36:42 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-09-06 15:36:42 +0200
commita33150eb4b041b243d0493cd4b53bfbcace3299e (patch)
tree706bc86a80a2ffe281e12935f29508ef9597d5f3 /view.c
parentdoes this preserve z order for anthony? (diff)
downloaddwm-a33150eb4b041b243d0493cd4b53bfbcace3299e.tar.gz
dwm-a33150eb4b041b243d0493cd4b53bfbcace3299e.zip
no this is better
Diffstat (limited to '')
-rw-r--r--view.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/view.c b/view.c
index e74d4bc..eddf2da 100644
--- a/view.c
+++ b/view.c
@@ -18,6 +18,15 @@ minclient()
18 return min; 18 return min;
19} 19}
20 20
21static void
22pop(Client *c)
23{
24 detach(c);
25 if(clients)
26 clients->prev = c;
27 c->next = clients;
28 clients = c;
29}
21 30
22static void 31static void
23reorder() 32reorder()
@@ -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}