swallow patch: unfullscreen client and reset focus

This commit is contained in:
Aajonus Online 2020-05-05 19:31:53 +03:00
parent c4f45fafac
commit 305c442aca

5
dwm.c
View file

@ -513,12 +513,15 @@ unswallow(Client *c)
free(c->swallowing);
c->swallowing = NULL;
/* unfullscreen the client */
setfullscreen(c, 0);
updatetitle(c);
arrange(c->mon);
XMapWindow(dpy, c->win);
XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
configure(c);
setclientstate(c, NormalState);
focus(NULL);
arrange(c->mon);
}
void