added noborder patch

This commit is contained in:
redacted 2019-04-23 00:39:27 +01:00 committed by Alex Denes
parent 4a9e3f532c
commit 8b2073cde5
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 7 additions and 0 deletions

7
dwm.c
View File

@ -1331,6 +1331,13 @@ resizeclient(Client *c, int x, int y, int w, int h)
c->oldw = c->w; c->w = wc.width = w;
c->oldh = c->h; c->h = wc.height = h;
wc.border_width = c->bw;
if (((nexttiled(c->mon->clients) == c && !nexttiled(c->next))
|| &monocle == c->mon->lt[c->mon->sellt]->arrange)
&& !c->isfullscreen && !c->isfloating) {
c->w = wc.width += c->bw * 2;
c->h = wc.height += c->bw * 2;
wc.border_width = 0;
}
XConfigureWindow(dpy, c->win, CWX|CWY|CWWidth|CWHeight|CWBorderWidth, &wc);
configure(c);
XSync(dpy, False);