tsimplified unmanage - dwm - [fork] customized build of dwm, the dynamic window… | |
git clone git://src.adamsgaard.dk/dwm | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 8aa860d270467ac941d48f6e6905bb7eecf0a8be | |
parent 15abade2720158fd35dcf59aa2cd5cbb325a849c | |
Author: Anselm R. Garbe <[email protected]> | |
Date: Thu, 7 Sep 2006 18:12:40 +0200 | |
simplified unmanage | |
Diffstat: | |
M client.c | 10 ++-------- | |
1 file changed, 2 insertions(+), 8 deletions(-) | |
--- | |
diff --git a/client.c b/client.c | |
t@@ -414,19 +414,13 @@ togglemax(Arg *arg) | |
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); |