diff --git a/dwm.c b/dwm.c index 33873cf..242909e 100644 --- a/dwm.c +++ b/dwm.c @@ -501,8 +501,8 @@ swallow(Client *p, Client *c) p->win = c->win; c->win = w; updatetitle(p); - arrange(p->mon); XMoveResizeWindow(dpy, p->win, p->x, p->y, p->w, p->h); + arrange(p->mon); configure(p); updateclientlist(); } @@ -515,12 +515,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