summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-12-28 10:25:34 -0500
committerLuke Smith <luke@lukesmith.xyz>2020-12-28 10:25:34 -0500
commit94906e10e99bdf36c10ad718381cfa0f6e176724 (patch)
treef8e3bf762b30b149dba7dcd9800f7c15428fcf53
parente4997553574dac8aa6158af6860a4d4bfe5fe073 (diff)
parent7d735656f7fabe0107e36dc672b61a37fc8930c4 (diff)
Merge branch 'JimKat-1-fixedswallow'
-rw-r--r--dwm.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/dwm.c b/dwm.c
index c18ac9c..93d2423 100644
--- a/dwm.c
+++ b/dwm.c
@@ -502,7 +502,13 @@ swallow(Client *p, Client *c)
p->win = c->win;
c->win = w;
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);
+ XSetWindowBorder(dpy, p->win, scheme[SchemeNorm][ColBorder].pixel);
+
arrange(p->mon);
configure(p);
updateclientlist();
@@ -521,7 +527,13 @@ unswallow(Client *c)
updatetitle(c);
arrange(c->mon);
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);
+ XSetWindowBorder(dpy, c->win, scheme[SchemeNorm][ColBorder].pixel);
+
setclientstate(c, NormalState);
focus(NULL);
arrange(c->mon);