summaryrefslogtreecommitdiff
path: root/dwl/rmaster.patch
diff options
context:
space:
mode:
authortslil clingman <tslil@posteo.de>2023-12-01 18:04:04 +0100
committertslil clingman <tslil@posteo.de>2023-12-01 18:12:10 +0100
commit119f17396c60900eaf7534f8106d4ce6ca0362e5 (patch)
tree3d2074b5f295e8168312494381ab23eccc0ca1ec /dwl/rmaster.patch
parent9bc372625e1fdafa50d44dcb9a8070ecdfc01b38 (diff)
[dwl] track only patches against upstream
Diffstat (limited to 'dwl/rmaster.patch')
-rw-r--r--dwl/rmaster.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/dwl/rmaster.patch b/dwl/rmaster.patch
new file mode 100644
index 0000000..f6afd59
--- /dev/null
+++ b/dwl/rmaster.patch
@@ -0,0 +1,27 @@
+From fb5d9aab92bf5eae32b62d345290f61fec08a2fe Mon Sep 17 00:00:00 2001
+From: tslil clingman
+Date: Sun, 26 Nov 2023 16:38:01 +0100
+Subject: [PATCH] rmaster
+
+---
+ dwl.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/dwl.c b/dwl.c
+index 47e238e..3e9bd4a 100644
+--- a/dwl.c
++++ b/dwl.c
+@@ -2451,11 +2451,11 @@ tile(Monitor *m)
+ if (!VISIBLEON(c, m) || c->isfloating || c->isfullscreen)
+ continue;
+ if (i < m->nmaster) {
+- resize(c, (struct wlr_box){.x = m->w.x, .y = m->w.y + my, .width = mw,
++ resize(c, (struct wlr_box){.x = m->w.x + m->w.width - mw, .y = m->w.y + my, .width = mw,
+ .height = (m->w.height - my) / (MIN(n, m->nmaster) - i)}, 0);
+ my += c->geom.height;
+ } else {
+- resize(c, (struct wlr_box){.x = m->w.x + mw, .y = m->w.y + ty,
++ resize(c, (struct wlr_box){.x = m->w.x, .y = m->w.y + ty,
+ .width = m->w.width - mw, .height = (m->w.height - ty) / (n - i)}, 0);
+ ty += c->geom.height;
+ }