seems to preserve floating client z-layer order (even with reorder() calls)
authorAnselm R. Garbe <arg@10kloc.org>
Wed, 06 Sep 2006 11:46:35 +0200
changeset 435 42388f634de0
parent 434 265dc4ae3354
child 436 b3659c3c5dab
seems to preserve floating client z-layer order (even with reorder() calls)
client.c
config.mk
--- a/client.c	Wed Sep 06 10:54:10 2006 +0200
+++ b/client.c	Wed Sep 06 11:46:35 2006 +0200
@@ -99,6 +99,14 @@
 		}
 	}
 	if(c) {
+		if((c->isfloat || arrange == dofloat) && (c != clients)) {
+			detach(c);
+			if(clients) {
+				clients->prev = c;
+				c->next = clients;
+			}
+			clients = c;
+		}
 		grabbuttons(c, True);
 		drawtitle(c);
 		XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
--- a/config.mk	Wed Sep 06 10:54:10 2006 +0200
+++ b/config.mk	Wed Sep 06 11:46:35 2006 +0200
@@ -1,5 +1,5 @@
 # dwm version
-VERSION = 1.4
+VERSION = 1.5
 
 # Customize below to fit your system