aboutsummaryrefslogtreecommitdiff
path: root/protocols/desktop-shell.xml
diff options
context:
space:
mode:
authorKenny Levinsen <kl@kl.wtf>2025-04-30 13:34:31 +0200
committerSimon Ser <contact@emersion.fr>2025-05-01 00:00:50 +0200
commit8ac1f72c9ef88b2919457e3598059f963df69305 (patch)
tree25e2138f48abe1c12b4c7aacc87a0d99b6405b3d /protocols/desktop-shell.xml
parent6cac61b6b96c4a48a69f8ec3c06c2df560b01827 (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 'protocols/desktop-shell.xml')
0 files changed, 0 insertions, 0 deletions