X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=view.c;h=21efa164f0a1c818a5d672de1a6e6153444549b7;hb=d39d00057ce609e726b2769f953485dc4c7403cc;hp=86902d4779b638a374a8e00498f5311841c64e17;hpb=26157e6973f240a9b5ee407b9d2d5eca9358844f;p=dwm.git 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(); }