aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2025-04-30 13:34:31 +0200
committerFurkan Sahin <furkan-dev@proton.me>2025-04-30 13:34:31 +0200
commitd32f664b9b82b30bc6c48cc36d494c1761ccd313 (patch)
tree25e2138f48abe1c12b4c7aacc87a0d99b6405b3d /swaybar
parentefae3a11c4ba6f71583ec3c74f04093782bb6ed2 (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.
Diffstat (limited to 'swaybar')
0 files changed, 0 insertions, 0 deletions