diff options
author | Luke Smith <luke@lukesmith.xyz> | 2020-06-03 06:59:53 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 06:59:53 -0400 |
commit | 484720bbba3e2b175b71dba283c3a84b13e71eea (patch) | |
tree | c3dca5c48507d02021cbcd91a6a1255f40ed1868 | |
parent | 6ab28a4723aff1d9ecfdacae582d4ff28f8df175 (diff) | |
parent | d8cc17eaac20cf6b15316b71813237f99b17fa81 (diff) |
Merge pull request #79 from jbensmann/master
fixed gaps in centeredfloatingmaster layout
-rw-r--r-- | vanitygaps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vanitygaps.c b/vanitygaps.c index 2b438be..7245e74 100644 --- a/vanitygaps.c +++ b/vanitygaps.c @@ -343,13 +343,13 @@ centeredfloatingmaster(Monitor *m) /* go mfact box in the center if more than nmaster clients */ if (m->ww > m->wh) { mw = m->ww * m->mfact - iv*mivf*(MIN(n, m->nmaster) - 1); - mh = m->wh * 0.9; + mh = m->wh * 0.9 - 2*oh; } else { mw = m->ww * 0.9 - iv*mivf*(MIN(n, m->nmaster) - 1); mh = m->wh * m->mfact; } mx = m->wx + (m->ww - mw) / 2; - my = m->wy + (m->wh - mh - 2*oh) / 2; + my = m->wy + (m->wh - mh) / 2; sx = m->wx + ov; sy = m->wy + oh; |