From 0925dd588c6879916c8a9ded1e680963b093b068 Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Fri, 8 Sep 2006 08:19:54 +0200 Subject: applied sanders patch of not manipulating sel --- view.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'view.c') diff --git a/view.c b/view.c index 5cbab086..3e786613 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(); } -- cgit v1.2.3