diff options
author | Luke Smith <luke@lukesmith.xyz> | 2020-05-05 13:30:22 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-05 13:30:22 -0400 |
commit | 39e3fbaabaec2ada5689da8673f839aa880f5f5f (patch) | |
tree | ede12f80d88e9e95f94ab2107a31284e360caa26 | |
parent | 8f4d5e03d379527d87d3a6d844f0f39e231d73f3 (diff) | |
parent | ff49b0353eeeea89a7eace6af4d0d0661857adad (diff) |
Merge pull request #57 from aajonusonline/master
swallow patch: unfullscreen client and reset focus
-rw-r--r-- | dwm.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |