aboutsummaryrefslogtreecommitdiffstats
path: root/LICENSE
diff options
context:
space:
mode:
authorLibravatar Pedro CĂ´rte-Real <pedro@pedrocr.net>2019-07-28 12:19:34 +0100
committerLibravatar Drew DeVault <sir@cmpwn.com>2020-01-08 10:27:20 -0500
commit1f4b3c91d4ee4ee0948d8d6699cf6b0127a0f79b (patch)
treecae415dcef9d2201d948d6200545cec5e34a4c61 /LICENSE
parentMake sure we don't calculate fractional pixel gaps (diff)
downloadsway-1f4b3c91d4ee4ee0948d8d6699cf6b0127a0f79b.tar.gz
sway-1f4b3c91d4ee4ee0948d8d6699cf6b0127a0f79b.tar.zst
sway-1f4b3c91d4ee4ee0948d8d6699cf6b0127a0f79b.zip
Make all the container dimensions integers
Containers are always fixed to the pixel grid so position and size them with integers instead of doubles. Functionally this should be no different since rounding down is already being done on things like layout. But it makes it clear what the intention is and avoids bugs where fractional pixels are used. The translating and moving code is still using doubles because the cursors can have fractional pixels and thus the code is plumbed that way. But that could also probably be changed easily by doing the integer conversions earlier and plumbing with int.
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions