diff options
author | Anselm R. Garbe <arg@10kloc.org> | 2006-09-04 10:10:08 +0200 |
---|---|---|
committer | Anselm R. Garbe <arg@10kloc.org> | 2006-09-04 10:10:08 +0200 |
commit | d39d00057ce609e726b2769f953485dc4c7403cc (patch) | |
tree | afbbc160ffd6453b371a088a873974da82aa2c57 /view.c | |
parent | 26157e6973f240a9b5ee407b9d2d5eca9358844f (diff) | |
download | dwm-d39d00057ce609e726b2769f953485dc4c7403cc.tar.gz |
reducing focus calls (sanders patch)
Diffstat (limited to 'view.c')
-rw-r--r-- | view.c | 10 |
1 files changed, 4 insertions, 6 deletions
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(); } |