Mercurial > aewl
diff client.c @ 450:728c9089b079 1.5
applied sanders patch of not manipulating sel
author | Anselm R. Garbe <arg@10kloc.org> |
---|---|
date | Fri, 08 Sep 2006 08:19:54 +0200 |
parents | 8089f22fdb46 |
children | 026aba558fdf |
line wrap: on
line diff
--- a/client.c Fri Sep 08 07:40:16 2006 +0200 +++ b/client.c Fri Sep 08 08:19:54 2006 +0200 @@ -414,14 +414,16 @@ 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);