Fixing bugs in relation to #12

This commit is contained in:
bakkeby
2020-03-21 14:23:27 +01:00
parent 873b856428
commit 9bc39c02b2
3 changed files with 5 additions and 5 deletions

View File

@ -83,9 +83,9 @@ centeredfloatingmaster(Monitor *m)
} else {
/* stack clients are stacked horizontally */
#if CFACTS_PATCH
resize(c, sx, sy, sw * (c->cfact / sfacts) + ((i - m->nmaster) < srest ? 1 : 0) - (2*c->bw), sh - (2*c->bw), 0);
resize(c, sx, sy, (sw / sfacts) * c->cfact + ((i - m->nmaster) < srest ? 1 : 0) - (2*c->bw), sh - (2*c->bw), 0);
#else
resize(c, sx, sy, sw * (c->cfact / sfacts) + ((i - m->nmaster) < srest ? 1 : 0) - (2*c->bw), sh - (2*c->bw), 0);
resize(c, sx, sy, (sw / sfacts) + ((i - m->nmaster) < srest ? 1 : 0) - (2*c->bw), sh - (2*c->bw), 0);
#endif // CFACTS_PATCH
#if VANITYGAPS_PATCH
sx += WIDTH(c) + iv;