applied sanders patch of not manipulating sel
This commit is contained in:
parent
6f20315dff
commit
0925dd588c
2 changed files with 8 additions and 6 deletions
8
view.c
8
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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue