Merge pull request #79 from jbensmann/master

fixed gaps in centeredfloatingmaster layout
This commit is contained in:
Luke Smith 2020-06-03 06:59:53 -04:00 committed by GitHub
commit 484720bbba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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