commit b96972d2b93b7af64499a1790673d2b5ae4eac3c
parent 172959d2f353109d2299177f85ed9d7039bf80f1
Author: Aaron Duxler <aaron.duxler@gmail.com>
Date: Tue, 28 May 2019 21:27:49 +0200
[dwm][patch] ru_gaps single border instead of double border between clients
Diffstat:
1 file changed, 17 insertions(+), 12 deletions(-)
diff --git a/dwm.suckless.org/patches/ru_gaps/dwm-ru_fibonacci-6.2.diff b/dwm.suckless.org/patches/ru_gaps/dwm-ru_fibonacci-6.2.diff
@@ -1,8 +1,11 @@
-diff -up a/config.def.h b/config.def.h
---- a/config.def.h 2019-05-12 17:29:44.703284415 +0200
-+++ b/config.def.h 2019-05-12 17:33:54.796612993 +0200
-@@ -39,6 +39,8 @@ static const int resizehints = 1; /*
+diff -upN a/config.def.h b/config.def.h
+--- a/config.def.h 2019-05-28 13:43:00.326646120 +0200
++++ b/config.def.h 2019-05-28 21:17:55.213171996 +0200
+@@ -36,8 +36,11 @@ static const float mfact = 0.55; /*
+ static const int nmaster = 1; /* number of clients in master area */
+ static const int resizehints = 1; /* 1 means respect size hints in tiled resizals */
++#include "fibonacci.c"
static const Layout layouts[] = {
/* symbol arrange function */
+ { "[@]", spiral },
@@ -12,10 +15,9 @@ diff -up a/config.def.h b/config.def.h
{ "[M]", monocle },
diff -upN a/fibonacci.c b/fibonacci.c
--- a/fibonacci.c 1970-01-01 01:00:00.000000000 +0100
-+++ b/fibonacci.c 2019-05-12 14:26:22.213180754 +0200
-@@ -0,0 +1,71 @@
-+void
-+fibonacci(Monitor *mon, int s) {
++++ b/fibonacci.c 2019-05-28 21:07:51.119850125 +0200
+@@ -0,0 +1,73 @@
++void fibonacci(Monitor *mon, int s) {
+ unsigned int i, n, nx, ny, nw, nh;
+ Client *c;
+
@@ -29,7 +31,7 @@ diff -upN a/fibonacci.c b/fibonacci.c
+ }
+
+ nx = mon->wx;
-+ ny = 0;
++ ny = mon->gappx;
+ nw = mon->ww;
+ nh = mon->wh;
+
@@ -66,13 +68,16 @@ diff -upN a/fibonacci.c b/fibonacci.c
+ {
+ if(n != 1)
+ nw = mon->ww * mon->mfact;
-+ ny = mon->wy;
++ ny = mon->wy + mon->gappx;
+ }
+ else if(i == 1)
-+ nw = mon->ww - nw;
++ nw = mon->ww - nw - mon->gappx;
+ i++;
+ }
-+ resize(c, nx + mon->gappx, ny + mon->gappx, nw - 2 * (c->bw + mon->gappx), nh - 2 * (c->bw + mon->gappx), False);
++ if(i <= 4 && (i!=2 || n==2))
++ resize(c, nx + mon->gappx, ny, nw - 2 * (c->bw) - mon->gappx, nh - 2 * (c->bw) - 2*mon->gappx, False);
++ else
++ resize(c, nx + mon->gappx, ny, nw - 2 * (c->bw) - mon->gappx, nh - 2 * (c->bw) - mon->gappx, False);
+ }
+}
+