diff --git a/suckless/dwm/dwm.c b/suckless/dwm/dwm.c index b54f160..e9bd897 100644 --- a/suckless/dwm/dwm.c +++ b/suckless/dwm/dwm.c @@ -474,6 +474,7 @@ swallow(Client *p, Client *c) detach(p); detachstack(p); c->swallowing = p; + p->mon = c->mon; } else { detach(c); detachstack(c); @@ -483,8 +484,6 @@ swallow(Client *p, Client *c) c->win = w; } - c->mon = p->mon; - updatetitle(p); XMoveResizeWindow(dpy, p->win, p->x, p->y, p->w, p->h); arrange(p->mon); @@ -503,6 +502,7 @@ unswallow(Client *c) c->next = old.next; c->snext = old.snext; c->mon = old.mon; + c->tags = old.tags; } else c->win = c->swallowing->win;