aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/libinput.c
diff options
context:
space:
mode:
authorLibravatar Pedro CĂ´rte-Real <pedro@pedrocr.net>2019-07-28 02:44:32 +0100
committerLibravatar Brian Ashworth <bosrsf04@gmail.com>2019-07-27 23:36:16 -0400
commitcefc608cb942ce260dcbfc13079e29e684893bfa (patch)
tree4a7a04a1de16d3aedc60c1b9a97ff541d4a0a2b7 /sway/input/libinput.c
parentRemove all wayland-server.h includes (diff)
downloadsway-cefc608cb942ce260dcbfc13079e29e684893bfa.tar.gz
sway-cefc608cb942ce260dcbfc13079e29e684893bfa.tar.zst
sway-cefc608cb942ce260dcbfc13079e29e684893bfa.zip
Fix resize sibling amount calculations
Sibling amounts were being calculated after the original fraction had been altered. This led to broken resize amounts. Fix that by calculating things upfront before adjusting values which also makes the code cleaner. For sanity checks also calculate the sibling amount with the ceiling so we never go below the sanity check even by one pixel. Fixes #4386
Diffstat (limited to 'sway/input/libinput.c')
0 files changed, 0 insertions, 0 deletions