simplified unmanage
This commit is contained in:
parent
15abade272
commit
8aa860d270
1 changed files with 2 additions and 8 deletions
10
client.c
10
client.c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue