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; }