all repos — dwm @ 8aa860d270467ac941d48f6e6905bb7eecf0a8be

my dwm build

simplified unmanage
Anselm R. Garbe arg@10kloc.org
Thu, 07 Sep 2006 18:12:40 +0200
commit

8aa860d270467ac941d48f6e6905bb7eecf0a8be

parent

15abade2720158fd35dcf59aa2cd5cbb325a849c

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

jump to
M client.cclient.c

@@ -414,19 +414,13 @@

void unmanage(Client *c) { - Client *tc, *fc; - Window trans; XGrabServer(dpy); XSetErrorHandler(xerrordummy); detach(c); if(sel == c) { - XGetTransientForHint(dpy, c->win, &trans); - if(trans && (tc = getclient(trans)) && isvisible(tc)) - fc = tc; - else - fc = getnext(clients); - focus(fc); + for(sel = stack; sel && !isvisible(sel); sel = sel->snext); + focus(sel); } XUngrabButton(dpy, AnyButton, AnyModifier, c->win);