Merge branch 'JimKat-1-fixedswallow'

This commit is contained in:
Luke Smith 2020-12-28 10:25:34 -05:00
commit 94906e10e9
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252

12
dwm.c
View file

@ -502,7 +502,13 @@ swallow(Client *p, Client *c)
p->win = c->win; p->win = c->win;
c->win = w; c->win = w;
updatetitle(p); updatetitle(p);
XWindowChanges wc;
wc.border_width = p->bw;
XConfigureWindow(dpy, p->win, CWBorderWidth, &wc);
XMoveResizeWindow(dpy, p->win, p->x, p->y, p->w, p->h); XMoveResizeWindow(dpy, p->win, p->x, p->y, p->w, p->h);
XSetWindowBorder(dpy, p->win, scheme[SchemeNorm][ColBorder].pixel);
arrange(p->mon); arrange(p->mon);
configure(p); configure(p);
updateclientlist(); updateclientlist();
@ -521,7 +527,13 @@ unswallow(Client *c)
updatetitle(c); updatetitle(c);
arrange(c->mon); arrange(c->mon);
XMapWindow(dpy, c->win); XMapWindow(dpy, c->win);
XWindowChanges wc;
wc.border_width = c->bw;
XConfigureWindow(dpy, c->win, CWBorderWidth, &wc);
XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h); XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
XSetWindowBorder(dpy, c->win, scheme[SchemeNorm][ColBorder].pixel);
setclientstate(c, NormalState); setclientstate(c, NormalState);
focus(NULL); focus(NULL);
arrange(c->mon); arrange(c->mon);