commit 3f17e24099a909fb1050f6778619ab3438668d49
parent 263571431f2c1b7b421a02547924bfb41075fc0d
Author: Alex Balgavy <alex@balgavy.eu>
Date: Fri, 8 Oct 2021 13:25:14 +0200
Noborder patch - hide border if one window
Diffstat:
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/dwm.c b/dwm.c
@@ -1508,6 +1508,14 @@ 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
+ && NULL != c->mon->lt[c->mon->sellt]->arrange) {
+ 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);
if (c->fakefullscreen == 1)