From d39d00057ce609e726b2769f953485dc4c7403cc Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Mon, 4 Sep 2006 10:10:08 +0200 Subject: reducing focus calls (sanders patch) --- view.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'view.c') diff --git a/view.c b/view.c index 86902d47..21efa164 100644 --- a/view.c +++ b/view.c @@ -68,9 +68,8 @@ dofloat(Arg *arg) else ban(c); } - if(!(fc = sel) || !isvisible(fc)) - fc = getnext(clients); - focus(fc); + if(!sel || !isvisible(sel)) + focus(getnext(clients)); restack(); } @@ -131,9 +130,8 @@ dotile(Arg *arg) else ban(c); } - if(!(fc = sel) || !isvisible(fc)) - fc = getnext(clients); - focus(fc); + if(!sel || !isvisible(sel)) + focus(getnext(clients)); restack(); } -- cgit v1.2.3