X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=view.c;h=3e786613502b16b5822ba68502c82f0759a27cad;hb=0925dd588c6879916c8a9ded1e680963b093b068;hp=5cbab0866fc5c8366ffd3597b8ea5e7a6a7a19a5;hpb=6f20315dff5de33e9ff9d3e6856769bccc4a6548;p=dwm.git diff --git a/view.c b/view.c index 5cbab08..3e78661 100644 --- a/view.c +++ b/view.c @@ -77,8 +77,8 @@ dofloat(Arg *arg) ban(c); } if(!sel || !isvisible(sel)) { - for(sel = stack; sel && !isvisible(sel); sel = sel->snext); - focus(sel); + for(c = stack; c && !isvisible(c); c = c->snext); + focus(c); } restack(); } @@ -141,8 +141,8 @@ dotile(Arg *arg) ban(c); } if(!sel || !isvisible(sel)) { - for(sel = stack; sel && !isvisible(sel); sel = sel->snext); - focus(sel); + for(c = stack; c && !isvisible(c); c = c->snext); + focus(c); } restack(); }