# HG changeset patch # User Anselm R. Garbe # Date 1157357408 -7200 # Node ID 1eb2eb405653c089a749daf92cecd13927390628 # Parent 052657ff2e7bb4d3830a60b48bbe46cdf9d3add5 reducing focus calls (sanders patch) diff -r 052657ff2e7b -r 1eb2eb405653 view.c --- a/view.c Mon Sep 04 08:55:49 2006 +0200 +++ b/view.c Mon Sep 04 10:10:08 2006 +0200 @@ -68,9 +68,8 @@ 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 @@ else ban(c); } - if(!(fc = sel) || !isvisible(fc)) - fc = getnext(clients); - focus(fc); + if(!sel || !isvisible(sel)) + focus(getnext(clients)); restack(); }