summaryrefslogtreecommitdiff
path: root/dwm.c%25252525252525252525253fid%25252525252525252525253d67d76bdc68102df97617...
diff options
context:
space:
mode:
authorChris Down <chris@chrisdown.name>2020-04-20 16:41:52 +0100
committerHiltjo Posthuma <hiltjo@codemadness.org>2020-04-20 17:56:41 +0200
commita8e9513783f335b1ac7255e40a663adfffc4b475 (patch)
treeb5782bc2b06e1909f9baffdca55a0a784f00e73d /dwm.c%25252525252525252525253fid%25252525252525252525253d67d76bdc68102df976177de351f65329d8683064%252525252525252525253fid%252525252525252525253d61bb8b2241d4db08bea4261c82e27cd9797099e7%2525252525252525253fid%2525252525252525253dbb2e7222baeec7776930354d0e9f210cc2aaad5f%25252525252525253fid%25252525252525253df04cac6d6e39cd9e3fc4fae526e3d1e8df5e34b2%252525252525253fid%252525252525253df09418bbb6651ab4c299cfefbe1d18de401f630e%2525252525253fid%2525252525253ded3ab6b4fceded0e9f2d22372df49a2bbd58de66%25252525253fid%25252525253ded3ab6b4fceded0e9f2d22372df49a2bbd58de66&id2%25252525253df087d20e6e60a49c756936b4312f5d194d8e63b4%252525253fid%252525253ded3ab6b4fceded0e9f2d22372df49a2bbd58de66%2525253fid%2525253ded3ab6b4fceded0e9f2d22372df49a2bbd58de66%25253fid%25253ded3ab6b4fceded0e9f2d22372df49a2bbd58de66%253fid%253df087d20e6e60a49c756936b4312f5d194d8e63b4%3fid%3df087d20e6e60a49c756936b4312f5d194d8e63b4?id=a8e9513783f335b1ac7255e40a663adfffc4b475
parentc82db690cc0c4624dad4dc6ae899020799ec84db (diff)
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 'dwm.c%25252525252525252525253fid%25252525252525252525253d67d76bdc68102df976177de351f65329d8683064%252525252525252525253fid%252525252525252525253d61bb8b2241d4db08bea4261c82e27cd9797099e7%2525252525252525253fid%2525252525252525253dbb2e7222baeec7776930354d0e9f210cc2aaad5f%25252525252525253fid%25252525252525253df04cac6d6e39cd9e3fc4fae526e3d1e8df5e34b2%252525252525253fid%252525252525253df09418bbb6651ab4c299cfefbe1d18de401f630e%2525252525253fid%2525252525253ded3ab6b4fceded0e9f2d22372df49a2bbd58de66%25252525253fid%25252525253ded3ab6b4fceded0e9f2d22372df49a2bbd58de66&id2%25252525253df087d20e6e60a49c756936b4312f5d194d8e63b4%252525253fid%252525253ded3ab6b4fceded0e9f2d22372df49a2bbd58de66%2525253fid%2525253ded3ab6b4fceded0e9f2d22372df49a2bbd58de66%25253fid%25253ded3ab6b4fceded0e9f2d22372df49a2bbd58de66%253fid%253df087d20e6e60a49c756936b4312f5d194d8e63b4%3fid%3df087d20e6e60a49c756936b4312f5d194d8e63b4?id=a8e9513783f335b1ac7255e40a663adfffc4b475')
0 files changed, 0 insertions, 0 deletions