aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README1
-rw-r--r--dwm.c7
2 files changed, 8 insertions, 0 deletions
diff --git a/README b/README
index a18366f..4161940 100644
--- a/README
+++ b/README
@@ -50,3 +50,4 @@ and (re)compiling the source code.
Patches applied
-------------
Shiftview - https://lists.suckless.org/dev/1104/7590.html
+noborder - https://dwm.suckless.org/patches/noborder/
diff --git a/dwm.c b/dwm.c
index df8e268..9d41431 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1283,6 +1283,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);