fixed gaps in centeredfloatingmaster layout

the master area moved up when increasing outer gaps
This commit is contained in:
Johannes Bensmann 2020-06-01 22:27:56 +02:00
parent 1c7d57451b
commit d8cc17eaac

View file

@ -343,13 +343,13 @@ centeredfloatingmaster(Monitor *m)
/* go mfact box in the center if more than nmaster clients */ /* go mfact box in the center if more than nmaster clients */
if (m->ww > m->wh) { if (m->ww > m->wh) {
mw = m->ww * m->mfact - iv*mivf*(MIN(n, m->nmaster) - 1); 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 { } else {
mw = m->ww * 0.9 - iv*mivf*(MIN(n, m->nmaster) - 1); mw = m->ww * 0.9 - iv*mivf*(MIN(n, m->nmaster) - 1);
mh = m->wh * m->mfact; mh = m->wh * m->mfact;
} }
mx = m->wx + (m->ww - mw) / 2; 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; sx = m->wx + ov;
sy = m->wy + oh; sy = m->wy + oh;