treducing focus calls (sanders patch) - dwm - [fork] customized build of dwm, the dynamic window manager
 (HTM) git clone git://src.adamsgaard.dk/dwm
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit d39d00057ce609e726b2769f953485dc4c7403cc
 (DIR) parent 26157e6973f240a9b5ee407b9d2d5eca9358844f
 (HTM) Author: Anselm R. Garbe <arg@10kloc.org>
       Date:   Mon,  4 Sep 2006 10:10:08 +0200
       
       reducing focus calls (sanders patch)
       Diffstat:
         M view.c                              |      10 ++++------
       
       1 file changed, 4 insertions(+), 6 deletions(-)
       ---
 (DIR) diff --git a/view.c b/view.c
       t@@ -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();
        }
        
       t@@ -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();
        }