summaryrefslogtreecommitdiffstats
path: root/README.uk.md
diff options
context:
space:
mode:
authorLibravatar Pedro CĂ´rte-Real <pedro@pedrocr.net>2019-07-28 11:17:33 +0100
committerLibravatar Drew DeVault <sir@cmpwn.com>2020-01-08 10:27:20 -0500
commitc284ed379c60884f70418e6720a41c3af6e600e2 (patch)
treed3f6eb851738aba3f8664afac307dd916f0defd9 /README.uk.md
parentUpdate version to 1.3-rc1 (diff)
downloadsway-c284ed379c60884f70418e6720a41c3af6e600e2.tar.gz
sway-c284ed379c60884f70418e6720a41c3af6e600e2.tar.zst
sway-c284ed379c60884f70418e6720a41c3af6e600e2.zip
Avoid numerical instability in resize
Because the layout code rounds down the dimensions of the windows resizing would often be off by one pixel. The width/height fraction would not exactly reflect the final computed width and so the resize code would end up calculating things wrong. To fix this first snap the container size fractions to the pixel grid and only then do the resize. Also use round() instead of floor() during layout to avoid a slightly too small width. This applies in two cases: 1. For the container we are actually resizing using floor() might result in being 1px too small. 2. For the other containers it might result in resizing them down by 1px and then if the container being resized is the last all those extra pixels would make the resize too large. Fixes #4391
Diffstat (limited to 'README.uk.md')
0 files changed, 0 insertions, 0 deletions