[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); 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;
p->mon = c->mon;
} else { } else {
detach(c); detach(c);
detachstack(c); detachstack(c);
@ -482,10 +483,10 @@ swallow(Client *p, Client *c)
Window w = p->win; Window w = p->win;
p->win = c->win; p->win = c->win;
c->win = w; 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); arrange(p->mon);
configure(p); configure(p);
updateclientlist(); updateclientlist();