summaryrefslogtreecommitdiffstats
path: root/view.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--view.c8
1 files changed, 4 insertions, 4 deletions
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)
77 ban(c); 77 ban(c);
78 } 78 }
79 if(!sel || !isvisible(sel)) { 79 if(!sel || !isvisible(sel)) {
80 for(sel = stack; sel && !isvisible(sel); sel = sel->snext); 80 for(c = stack; c && !isvisible(c); c = c->snext);
81 focus(sel); 81 focus(c);
82 } 82 }
83 restack(); 83 restack();
84} 84}
@@ -141,8 +141,8 @@ dotile(Arg *arg)
141 ban(c); 141 ban(c);
142 } 142 }
143 if(!sel || !isvisible(sel)) { 143 if(!sel || !isvisible(sel)) {
144 for(sel = stack; sel && !isvisible(sel); sel = sel->snext); 144 for(c = stack; c && !isvisible(c); c = c->snext);
145 focus(sel); 145 focus(c);
146 } 146 }
147 restack(); 147 restack();
148} 148}