summaryrefslogtreecommitdiff
path: root/dwm.c
diff options
context:
space:
mode:
authorP.P.A <adolphs@moselle.moe>2023-07-09 10:05:07 +0200
committerP.P.A <adolphs@moselle.moe>2023-07-09 10:05:07 +0200
commit585922c64ca91955094036510b60aa36a0cf342d (patch)
tree631d4ace7de142970ef875776100f22ad3e483a9 /dwm.c
parent2d2378d16f0aa202b45398198349cb177fc54aa9 (diff)
leftstack
Diffstat (limited to 'dwm.c')
-rw-r--r--dwm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dwm.c b/dwm.c
index 4d996ac..c73b283 100644
--- a/dwm.c
+++ b/dwm.c
@@ -2148,14 +2148,14 @@ tile(Monitor *m)
else
mw = m->ww - m->gappx;
for (i = 0, my = ty = m->gappx, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++)
- if (i < m->nmaster) {
+ if (i < m->nmaster) {
h = (m->wh - my) / (MIN(n, m->nmaster) - i) - m->gappx;
- resize(c, m->wx + m->gappx, m->wy + my, mw - (2*c->bw) - m->gappx, h - (2*c->bw), 0);
+ resize(c, m->wx + m->gappx + m->ww - mw - m->gappx, m->wy + my, mw - (2*c->bw) - m->gappx, h - (2*c->bw), 0);
if (my + HEIGHT(c) + m->gappx < m->wh)
my += HEIGHT(c) + m->gappx;
} else {
h = (m->wh - ty) / (n - i) - m->gappx;
- resize(c, m->wx + mw + m->gappx, m->wy + ty, m->ww - mw - (2*c->bw) - 2*m->gappx, h - (2*c->bw), 0);
+ resize(c, m->wx + m->gappx, m->wy + ty, m->ww - mw - (2*c->bw) - 2*m->gappx, h - (2*c->bw), 0);
if (ty + HEIGHT(c) + m->gappx < m->wh)
ty += HEIGHT(c) + m->gappx;
}