summaryrefslogtreecommitdiffhomepage
path: root/patch/centeredfloatingmaster.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-03-21 14:23:27 +0100
committerbakkeby <[email protected]>2020-03-21 14:23:27 +0100
commit9bc39c02b27a9ecc0bfe17bd1f917c31b07b95a2 (patch)
tree7d1c284426417327fb9c4568f1c2d398238a8126 /patch/centeredfloatingmaster.c
parent873b856428e9695bd13a1df37e9eb38c20a3f52b (diff)
downloaddwm-flexipatch-9bc39c02b27a9ecc0bfe17bd1f917c31b07b95a2.tar.gz
dwm-flexipatch-9bc39c02b27a9ecc0bfe17bd1f917c31b07b95a2.zip
Fixing bugs in relation to #12
Diffstat (limited to 'patch/centeredfloatingmaster.c')
-rw-r--r--patch/centeredfloatingmaster.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/patch/centeredfloatingmaster.c b/patch/centeredfloatingmaster.c
index e052c24..4ceedeb 100644
--- a/patch/centeredfloatingmaster.c
+++ b/patch/centeredfloatingmaster.c
@@ -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;