all repos — dwm @ 0925dd588c6879916c8a9ded1e680963b093b068

my dwm build

applied sanders patch of not manipulating sel
Anselm R. Garbe arg@10kloc.org
Fri, 08 Sep 2006 08:19:54 +0200
commit

0925dd588c6879916c8a9ded1e680963b093b068

parent

6f20315dff5de33e9ff9d3e6856769bccc4a6548

2 files changed, 8 insertions(+), 6 deletions(-)

jump to
M client.cclient.c

@@ -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);
M view.cview.c

@@ -77,8 +77,8 @@ else

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 @@ else

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(); }