JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
after 1.3
[dwm.git] / view.c
diff --git a/view.c b/view.c
index 86902d4..cb92eee 100644 (file)
--- a/view.c
+++ b/view.c
@@ -57,7 +57,7 @@ detach(Client *c)
 void
 dofloat(Arg *arg)
 {
-       Client *c, *fc;
+       Client *c;
 
        maximized = False;
 
@@ -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();
 }
 
@@ -78,7 +77,7 @@ void
 dotile(Arg *arg)
 {
        int h, i, n, w;
-       Client *c, *fc;
+       Client *c;
 
        maximized = False;
 
@@ -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();
 }