Mercurial > dwm-meillo
changeset 401:1eb2eb405653
reducing focus calls (sanders patch)
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Mon, 04 Sep 2006 10:10:08 +0200 |
parents | 052657ff2e7b |
children | c7d5ff57998d |
files | view.c |
diffstat | 1 files changed, 4 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- 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(); }