[dwm] Fix dwm freezing with swalresize

This commit is contained in:
dogeystamp 2022-07-30 10:51:32 -04:00
parent d05c66f8f7
commit 0a6386747a

View File

@ -471,11 +471,11 @@ swallow(Client *p, Client *c)
XUnmapWindow(dpy, p->win); XUnmapWindow(dpy, p->win);
if (c->swalresize) { if (c->swalresize) {
sendmon(c, p->mon);
c->tags = p->tags;
detach(p); detach(p);
detachstack(p); detachstack(p);
c->swallowing = p; c->swallowing = p;
sendmon(c, p->mon);
c->tags = p->tags;
} else { } else {
detach(c); detach(c);
detachstack(c); detachstack(c);