diff options
author | JimKat-1 <dimitriskats123456789@gmail.com> | 2020-12-28 15:06:01 +0200 |
---|---|---|
committer | JimKat-1 <dimitriskats123456789@gmail.com> | 2020-12-28 15:06:01 +0200 |
commit | b8da5a5c88624400a4a659b2186ea8c92b0f1f03 (patch) | |
tree | 3b330431fa44117364dad85cb7bd49eec76f7c0d /dwm.c | |
parent | 67eabfe475e273370de6e224f2ccd55f5d65452f (diff) |
Dwm did not redraw borders when swallowing so it messed up swallowing when in fullscreen
Diffstat (limited to 'dwm.c')
-rw-r--r-- | dwm.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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); |