diff options
| author | Kenny Levinsen <kl@kl.wtf> | 2025-04-30 13:34:31 +0200 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2025-05-18 23:55:44 +0200 |
| commit | 983af1a9b674c68b67c4c18a26c60940eb91e2a2 (patch) | |
| tree | 25e2138f48abe1c12b4c7aacc87a0d99b6405b3d /client | |
| parent | caeee85d8d50d9870c2cb35ad310bbca50cf4846 (diff) | |
config/output: Use INT_MAX as x/y unset value
We oftne use -1 to indicate unset values. In case of output (x, y), we
would consider the fields set if they are not both -1. This means that
(0, -1) and (-1, 0) are valid coordinates, but (-1, -1) is not.
We support negative output positioning, so we cannot use -1 to mean
unset. Zero is also not an option as that would disallow reverting a set
position back to (0, 0).
INT_MAX is an unreasonable output position, so use it to indicate unset
values, and only use the value when both are set.
(cherry picked from commit 8ac1f72c9ef88b2919457e3598059f963df69305)
Diffstat (limited to 'client')
0 files changed, 0 insertions, 0 deletions
