From: Anselm R. Garbe Date: Mon, 4 Sep 2006 08:10:08 +0000 (+0200) Subject: reducing focus calls (sanders patch) X-Git-Url: https://jasonwoof.com/gitweb/?p=dwm.git;a=commitdiff_plain;h=d39d00057ce609e726b2769f953485dc4c7403cc reducing focus calls (sanders patch) --- diff --git a/view.c b/view.c index 86902d4..21efa16 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(); }