[dwm] Bug fixes for swallow
This commit is contained in:
parent
97747aae7c
commit
bf27dd9eb9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user