about summary refs log tree commit diff stats
path: root/view.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-09-08 08:19:54 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-09-08 08:19:54 +0200
commit0925dd588c6879916c8a9ded1e680963b093b068 (patch)
tree5815385a168c5b74fefbff9899d2a26564bd5e97 /view.c
parent6f20315dff5de33e9ff9d3e6856769bccc4a6548 (diff)
downloaddwm-0925dd588c6879916c8a9ded1e680963b093b068.tar.gz
applied sanders patch of not manipulating sel 1.5
Diffstat (limited to 'view.c')
-rw-r--r--view.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/view.c b/view.c
index 5cbab08..3e78661 100644
--- a/view.c
+++ b/view.c
@@ -77,8 +77,8 @@ dofloat(Arg *arg)
 			ban(c);
 	}
 	if(!sel || !isvisible(sel)) {
-		for(sel = stack; sel && !isvisible(sel); sel = sel->snext);
-		focus(sel);
+		for(c = stack; c && !isvisible(c); c = c->snext);
+		focus(c);
 	}
 	restack();
 }
@@ -141,8 +141,8 @@ dotile(Arg *arg)
 			ban(c);
 	}
 	if(!sel || !isvisible(sel)) {
-		for(sel = stack; sel && !isvisible(sel); sel = sel->snext);
-		focus(sel);
+		for(c = stack; c && !isvisible(c); c = c->snext);
+		focus(c);
 	}
 	restack();
 }