X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=view.c;h=cb92eee58a973850dc3df0c3fea79c7d7d9d518f;hb=cc05093b0dc2c760a6abfca2756d9c95bba81aa7;hp=86902d4779b638a374a8e00498f5311841c64e17;hpb=26157e6973f240a9b5ee407b9d2d5eca9358844f;p=dwm.git diff --git a/view.c b/view.c index 86902d4..cb92eee 100644 --- 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(); }