diff options
| author | Anselm R. Garbe <arg@10kloc.org> | 2006-09-07 18:12:40 +0200 |
|---|---|---|
| committer | Anselm R. Garbe <arg@10kloc.org> | 2006-09-07 18:12:40 +0200 |
| commit | 8aa860d270467ac941d48f6e6905bb7eecf0a8be (patch) | |
| tree | 2a21f16837ea664645efe16c5b112abb5d3ed98d | |
| parent | using a global stack for focus recovery on arrange() - seems to work great (diff) | |
| download | dwm-8aa860d270467ac941d48f6e6905bb7eecf0a8be.tar.gz dwm-8aa860d270467ac941d48f6e6905bb7eecf0a8be.zip | |
simplified unmanage
Diffstat (limited to '')
| -rw-r--r-- | client.c | 10 |
1 files changed, 2 insertions, 8 deletions
| @@ -414,19 +414,13 @@ togglemax(Arg *arg) | |||
| 414 | void | 414 | void |
| 415 | unmanage(Client *c) | 415 | unmanage(Client *c) |
| 416 | { | 416 | { |
| 417 | Client *tc, *fc; | ||
| 418 | Window trans; | ||
| 419 | XGrabServer(dpy); | 417 | XGrabServer(dpy); |
| 420 | XSetErrorHandler(xerrordummy); | 418 | XSetErrorHandler(xerrordummy); |
| 421 | 419 | ||
| 422 | detach(c); | 420 | detach(c); |
| 423 | if(sel == c) { | 421 | if(sel == c) { |
| 424 | XGetTransientForHint(dpy, c->win, &trans); | 422 | for(sel = stack; sel && !isvisible(sel); sel = sel->snext); |
| 425 | if(trans && (tc = getclient(trans)) && isvisible(tc)) | 423 | focus(sel); |
| 426 | fc = tc; | ||
| 427 | else | ||
| 428 | fc = getnext(clients); | ||
| 429 | focus(fc); | ||
| 430 | } | 424 | } |
| 431 | 425 | ||
| 432 | XUngrabButton(dpy, AnyButton, AnyModifier, c->win); | 426 | XUngrabButton(dpy, AnyButton, AnyModifier, c->win); |
