aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/input-manager.c
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-01 10:14:40 -0700
commit79c5f5ba1245a8c3d575770419a6501447e78919 (patch)
tree8062565c8e79253e958037d6a627618d8b8173ce /sway/input/input-manager.c
parentMake sure we don't calculate fractional pixel gaps (diff)
downloadsway-79c5f5ba1245a8c3d575770419a6501447e78919.tar.gz
sway-79c5f5ba1245a8c3d575770419a6501447e78919.tar.zst
sway-79c5f5ba1245a8c3d575770419a6501447e78919.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 'sway/input/input-manager.c')
0 files changed, 0 insertions, 0 deletions