commit d8ae37ae44ac702003551e4e36f71574560d6bcd
Author: Markus Teich <[email protected]>
Date:   Tue Feb 7 12:33:51 2017 +0100

    dwm/patches: simplify noborder

diff --git a/dwm.suckless.org/patches/dwm-noborder-20170207-bb3bd6f.diff 
b/dwm.suckless.org/patches/dwm-noborder-20170207-bb3bd6f.diff
new file mode 100644
index 0000000..0e7fc42
--- /dev/null
+++ b/dwm.suckless.org/patches/dwm-noborder-20170207-bb3bd6f.diff
@@ -0,0 +1,18 @@
+diff --git a/dwm.c b/dwm.c
+index d27cb67..ad6b4df 100644
+--- a/dwm.c
++++ b/dwm.c
+@@ -1287,6 +1287,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);
diff --git a/dwm.suckless.org/patches/noborder.md 
b/dwm.suckless.org/patches/noborder.md
index d0d0638..098054f 100644
--- a/dwm.suckless.org/patches/noborder.md
+++ b/dwm.suckless.org/patches/noborder.md
@@ -9,6 +9,7 @@ Remove the border when there is only one window visible.
 Download
 --------
 
+ * [dwm-noborder-20170207-bb3bd6f.diff](dwm-noborder-20170207-bb3bd6f.diff)
  * [dwm-noborder-6.1.diff](dwm-noborder-6.1.diff)
  * [dwm-noborder-20160718-56a31dc.diff](dwm-noborder-20160718-56a31dc.diff)
 
@@ -17,3 +18,4 @@ Authors
 
  * Eric Pruitt - <[email protected]>
  * Laslo Hunhold - <[email protected]> (6.1, git port)
+ * Markus Teich - markus(DOT)teich(AT)stusta(DOT)de (simplification)


Reply via email to