[wiki] [sites] [dwm][patch] setborderpx reset floating windows to previous size || Aaron Duxler

From: <git_AT_suckless.org>
Date: Fri, 15 May 2020 18:10:33 +0200

commit d44c2e984ae310a1e7f287b267c93fd2aaaac2e7
Author: Aaron Duxler <aaron_AT_duxler.xyz>
Date: Fri May 15 18:10:30 2020 +0200

    [dwm][patch] setborderpx reset floating windows to previous size

diff --git a/dwm.suckless.org/patches/setborderpx/dwm-setborderpx-6.2.diff b/dwm.suckless.org/patches/setborderpx/dwm-setborderpx-6.2.diff
index 020e75bf..6a82087f 100644
--- a/dwm.suckless.org/patches/setborderpx/dwm-setborderpx-6.2.diff
+++ b/dwm.suckless.org/patches/setborderpx/dwm-setborderpx-6.2.diff
_AT_@ -76,7 +76,7 @@ diff -up a/dwm.c b/dwm.c
 + else if (arg->i != 0)
 + resizeclient(c, c->x, c->y, c->w, c->h);
 + else if (prev_borderpx > borderpx)
-+ resize(c, c->x + prev_borderpx - borderpx, c->y + prev_borderpx - borderpx, c->w, c->h, 0);
++ resize(c, c->x, c->y, c->w + 2*(prev_borderpx - borderpx), c->h + 2*(prev_borderpx - borderpx), 0);
 + else if (prev_borderpx < borderpx)
 + resize(c, c->x, c->y, c->w-2*(borderpx - prev_borderpx), c->h-2*(borderpx - prev_borderpx), 0);
 + }
diff --git a/dwm.suckless.org/patches/setborderpx/index.md b/dwm.suckless.org/patches/setborderpx/index.md
index fe500a39..11df1afc 100644
--- a/dwm.suckless.org/patches/setborderpx/index.md
+++ b/dwm.suckless.org/patches/setborderpx/index.md
_AT_@ -21,7 +21,7 @@ when increasing or decreasing border pixels.
 
 Download
 --------
-* [dwm-setborderpx-6.2.diff](dwm-setborderpx-6.2.diff) - 14-05-2020
+* [dwm-setborderpx-6.2.diff](dwm-setborderpx-6.2.diff) - 15-05-2020
 
 Author
 ------
Received on Fri May 15 2020 - 18:10:33 CEST

This archive was generated by hypermail 2.3.0 : Fri May 15 2020 - 18:12:53 CEST