diff --git a/suckless/dwm/dwm.c b/suckless/dwm/dwm.c index 1c2c5bb..f6de5a1 100644 --- a/suckless/dwm/dwm.c +++ b/suckless/dwm/dwm.c @@ -471,11 +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; + sendmon(c, p->mon); + c->tags = p->tags; } else { detach(c); detachstack(c);