Browse Source

applied sanders patch of not manipulating sel

master
Anselm R. Garbe 18 years ago
parent
commit
0925dd588c
2 changed files with 8 additions and 6 deletions
  1. +4
    -2
      client.c
  2. +4
    -4
      view.c

+ 4
- 2
client.c View File

@ -414,14 +414,16 @@ togglemax(Arg *arg)
void
unmanage(Client *c)
{
Client *nc;
XGrabServer(dpy);
XSetErrorHandler(xerrordummy);
detach(c);
detachstack(c);
if(sel == c) {
for(sel = stack; sel && !isvisible(sel); sel = sel->snext);
focus(sel);
for(nc = stack; nc && !isvisible(nc); nc = nc->snext);
focus(nc);
}
XUngrabButton(dpy, AnyButton, AnyModifier, c->win);


+ 4
- 4
view.c View File

@ -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…
Cancel
Save