about summary refs log tree commit diff stats
path: root/view.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@suckless.org>2007-01-05 21:56:57 +0100
committerAnselm R. Garbe <arg@suckless.org>2007-01-05 21:56:57 +0100
commite9cfae7aba1c8eafd827854705bf0d11d2de2dfb (patch)
tree7df19e62e6f09f8a07beab7ff14fb75a0ba86c35 /view.c
parent7ac0de8350c51ef39e4dee5f60e1da641c4fbd5b (diff)
downloaddwm-e9cfae7aba1c8eafd827854705bf0d11d2de2dfb.tar.gz
prevent pop() if first sel == nexttiled(clients)
Diffstat (limited to 'view.c')
-rw-r--r--view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/view.c b/view.c
index ffa22a1..503f1c2 100644
--- a/view.c
+++ b/view.c
@@ -261,7 +261,7 @@ zoom(Arg *arg) {
 		n++;
 
 	c = sel;
-	if(arrange != dofloat) {
+	if((arrange != dofloat) && c != nexttiled(clients)) {
 		detach(c);
 		if(clients)
 			clients->prev = c;