swayfx/include/sway/tree
Pedro Côrte-Real 8008344762 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
2020-01-01 10:14:29 -07:00
..
arrange.h Implement type safe arguments and demote sway_container 2018-09-05 18:01:43 +10:00
container.h Avoid numerical instability in resize 2020-01-01 10:14:29 -07:00
node.h Sanity check gaps between tiled containers 2019-07-15 23:46:27 -04:00
root.h Fix sway crashes for scratchpad layouts 2019-06-16 12:29:16 -04:00
view.h view: add max_render_time 2019-11-17 20:18:42 +01:00
workspace.h Add workspace {prev,next}_on_output --create 2019-02-17 11:50:07 -05:00