[wiki] [sites] Added floatingfix version. || Aidan Hall

From: <git_AT_suckless.org>
Date: Tue, 02 Jun 2020 15:58:12 +0200

commit abedf2ae6a2f903ae697a27d7ef928170dc91722
Author: Aidan Hall <aidan.hall_AT_outlook.com>
Date: Tue Jun 2 14:58:01 2020 +0000

    Added floatingfix version.

diff --git a/dwm.suckless.org/patches/noborder/dwm-noborderfloatingfix-6.2.diff b/dwm.suckless.org/patches/noborder/dwm-noborderfloatingfix-6.2.diff
new file mode 100644
index 00000000..4db7a4f4
--- /dev/null
+++ b/dwm.suckless.org/patches/noborder/dwm-noborderfloatingfix-6.2.diff
_AT_@ -0,0 +1,31 @@
+From 700b0bdea872f4c00182b2bd925b41fe03f8d222 Mon Sep 17 00:00:00 2001
+From: Aidan Hall <aidan.hall_AT_outlook.com>
+Date: Tue, 2 Jun 2020 14:41:53 +0000
+Subject: [PATCH] Prevents hiding the border if layout is floating.
+
+---
+ dwm.c | 8 ++++++++
+ 1 file changed, 8 insertions(+)
+
+diff --git a/dwm.c b/dwm.c
+index 4465af1..2dd959d 100644
+--- a/dwm.c
++++ b/dwm.c
+_AT_@ -1282,6 +1282,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);
+ XSync(dpy, False);
+--
+2.26.2
+
diff --git a/dwm.suckless.org/patches/noborder/index.md b/dwm.suckless.org/patches/noborder/index.md
index 12fe84b7..28ad3ea3 100644
--- a/dwm.suckless.org/patches/noborder/index.md
+++ b/dwm.suckless.org/patches/noborder/index.md
_AT_@ -10,8 +10,12 @@ Download
 * [dwm-noborder-6.1.diff](dwm-noborder-6.1.diff)
 * [dwm-noborder-6.2.diff](dwm-noborder-6.2.diff)
 
+* The normal version of noborder will cause a single window in floating layout to continuously grow whilst being moved. This version checks if the layout is floating before hiding the border:
+ * [dwm-noborderfloatingfix-6.2.diff](dwm-noborderfloatingfix-6.2.diff)
+
 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)
+* Aidan Hall - <aidan.hall_AT_outlook.com> (floating fix)
Received on Tue Jun 02 2020 - 15:58:12 CEST

This archive was generated by hypermail 2.3.0 : Tue Jun 02 2020 - 16:00:44 CEST