aboutsummaryrefslogtreecommitdiff
path: root/swaybar/tray/item.c
diff options
context:
space:
mode:
authorPedro CĂ´rte-Real <pedro@pedrocr.net>2019-07-28 12:19:34 +0100
committerDrew DeVault <sir@cmpwn.com>2020-01-01 10:14:40 -0700
commit79c5f5ba1245a8c3d575770419a6501447e78919 (patch)
tree8062565c8e79253e958037d6a627618d8b8173ce /swaybar/tray/item.c
parentbd1fb76e0f47b2320acd6492995c9545e37c4bb8 (diff)
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 'swaybar/tray/item.c')
0 files changed, 0 insertions, 0 deletions