[dwm] swallowresize: use original tag, monitor

This commit is contained in:
dogeystamp 2022-07-28 21:27:32 -04:00
parent 1b1f22ea38
commit d05c66f8f7

View File

@ -471,10 +471,11 @@ swallow(Client *p, Client *c)
XUnmapWindow(dpy, p->win);
if (c->swalresize) {
sendmon(c, p->mon);
c->tags = p->tags;
detach(p);
detachstack(p);
c->swallowing = p;
p->mon = c->mon;
} else {
detach(c);
detachstack(c);
@ -482,10 +483,10 @@ swallow(Client *p, Client *c)
Window w = p->win;
p->win = c->win;
c->win = w;
updatetitle(p);
XMoveResizeWindow(dpy, p->win, p->x, p->y, p->w, p->h);
}
updatetitle(p);
XMoveResizeWindow(dpy, p->win, p->x, p->y, p->w, p->h);
arrange(p->mon);
configure(p);
updateclientlist();