diff options
author | Nicholas Noll <nnoll523@gmail.com> | 2020-06-26 16:40:15 +0200 |
---|---|---|
committer | Nicholas Noll <nnoll523@gmail.com> | 2020-06-26 16:40:15 +0200 |
commit | 81ea118096933801f848ceda0506ae29b23f198a (patch) | |
tree | de148cbf1bfa9b3dcccd5e661acc353f5c2cc200 /sys | |
parent | 975afe99bc3d5997c0b49c66e0777ebda4f6106b (diff) |
fix: correctly deal with edge cases with one window
Diffstat (limited to 'sys')
-rw-r--r-- | sys/cmd/dwm/dwm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/cmd/dwm/dwm.c b/sys/cmd/dwm/dwm.c index c14a1f0..87613ec 100644 --- a/sys/cmd/dwm/dwm.c +++ b/sys/cmd/dwm/dwm.c @@ -863,7 +863,7 @@ tile(Monitor *m) if (n > m->nmaster) mw = m->nmaster ? (m->ww+gapx) * m->mfact : 0; else - mw = m->ww; + mw = m->ww - gapx; for (i = 0, my = ty = gapx, c = nexttiled(m->clients); c; c = nexttiled(c->next), i++) if (i < m->nmaster) { |