summaryrefslogtreecommitdiffhomepage
path: root/patch
diff options
context:
space:
mode:
authorbakkeby <[email protected]>2020-04-20 18:40:25 +0200
committerbakkeby <[email protected]>2020-04-20 18:40:25 +0200
commit11b47dda9950c646611c3517207c91fb829f603a (patch)
treed759a35ca5859744bd1eb4bab9f3fe1aa0b7b433 /patch
parentec32a283803def99433eb2e1af172a19217cd9de (diff)
downloaddwm-flexipatch-11b47dda9950c646611c3517207c91fb829f603a.tar.gz
dwm-flexipatch-11b47dda9950c646611c3517207c91fb829f603a.zip
setmfact: Unify bounds for compile-time and runtime mfact
There are two places that mfact can be set: - In the mfact global, which is defined at compile time and passed into m->mfact during monitor setup. No bounds checks are performed, but the comment alongside it says that valid values are [0.05..0.95]: static const float mfact = 0.55; /* factor of master area size [0.05..0.95] */ - By setmfact, which adjusts m->mfact at runtime. It also does some minimum and maximum bounds checks, allowing [0.1..0.9]. Values outside of that range are ignored, and mfact is not adjusted. These different thresholds mean that one cannot setmfact 0.95 or 0.05, despite the comment above that lists the legal range for mfact. Clarify this by enforcing the same bounds in setmfact at runtime as those listed for mfact at compile time.
Diffstat (limited to 'patch')
0 files changed, 0 insertions, 0 deletions