summaryrefslogtreecommitdiffstats
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
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--client.c7
-rw-r--r--view.c15
2 files changed, 11 insertions, 11 deletions
diff --git a/client.c b/client.c
index 45cb3a3..586a87f 100644
--- a/client.c
+++ b/client.c
@@ -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);
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}