summaryrefslogtreecommitdiffhomepage
path: root/patch/cfacts.c
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-03-07 17:04:17 +0100
committerbakkeby <[email protected]>2020-03-07 17:50:06 +0100
commit143f94cbc2d9d6e4a8432677f2af30be70031a9b (patch)
treefcc917f53cdc9dd91c19227a9b63b58110b4884e /patch/cfacts.c
parent58ab50845d5af725700dcfb1ef8c1f1053a78a88 (diff)
downloaddwm-flexipatch-143f94cbc2d9d6e4a8432677f2af30be70031a9b.tar.gz
dwm-flexipatch-143f94cbc2d9d6e4a8432677f2af30be70031a9b.zip
Fix for 0 nmaster for tile layout
Diffstat (limited to 'patch/cfacts.c')
-rw-r--r--patch/cfacts.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/patch/cfacts.c b/patch/cfacts.c
index 872c8e8..82ee560 100644
--- a/patch/cfacts.c
+++ b/patch/cfacts.c
@@ -26,7 +26,7 @@ getfacts(Monitor *m, float *mf, float *sf)
Client *c;
for (n = 0, c = nexttiled(m->clients); c; c = nexttiled(c->next), n++) {
- if (!m->nmaster || n < m->nmaster)
+ if (m->nmaster && n < m->nmaster)
mfacts += c->cfact;
else
sfacts += c->cfact;