applies dwm-noborder-20170207-bb3bd6f.diff dwm-noborder-20170207-bb3bd6f.diff
authorDaniel <thefekete@gmail.com>
Sat, 29 Dec 2018 00:41:26 +0000 (01:41 +0100)
committerDaniel <thefekete@gmail.com>
Sat, 29 Dec 2018 00:41:26 +0000 (01:41 +0100)
dwm.c

diff --git a/dwm.c b/dwm.c
index 4465af1..d3b0a31 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -1282,6 +1282,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->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);