summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorAajonus Online <aajonus.online@gmail.com>2020-05-05 19:31:53 +0300
committerAajonus Online <aajonus.online@gmail.com>2020-05-05 19:31:53 +0300
commit305c442acab6672bbf01fb7e8fb7a9806f99db3b (patch)
tree18acb17c122049ac088a99d9c046c703e285a930 /dwm.c
parentc4f45fafac88d8e800abe1958116855ff172933e (diff)
swallow patch: unfullscreen client and reset focus
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index a6968ff..8e004cb 100644
--- a/dwm.c
+++ b/dwm.c
@@ -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