[wiki] [sites] dwm/patches: simplify noborder || Markus Teich

From: <git_AT_suckless.org>
Date: Tue, 07 Feb 2017 12:34:07 +0100

commit d8ae37ae44ac702003551e4e36f71574560d6bcd
Author: Markus Teich <markus.teich_AT_stusta.mhn.de>
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
_AT_@ -0,0 +1,18 @@
+diff --git a/dwm.c b/dwm.c
+index d27cb67..ad6b4df 100644
+--- a/dwm.c
++++ b/dwm.c
+_AT_@ -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
_AT_@ -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)
 
_AT_@ -17,3 +18,4 @@ Authors
 
  * Eric Pruitt - <eric.pruitt_AT_gmail.com>
  * Laslo Hunhold - <dev_AT_frign.de> (6.1, git port)
+ * Markus Teich - markus(DOT)teich(AT)stusta(DOT)de (simplification)
Received on Tue Feb 07 2017 - 12:34:07 CET

This archive was generated by hypermail 2.3.0 : Tue Feb 07 2017 - 12:36:16 CET