sway-patched-tray-menu/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.c Avoid numerical instability in resize 2020-01-01 10:14:29 -07:00
container.c Allow moving a container hidden in scratchpad 2019-08-20 13:09:52 -04:00
node.c Fix scratchpad fullscreen behavior and crash 2019-04-13 08:48:37 -06:00
output.c add scale_filter output config option 2019-11-29 18:13:37 +01:00
root.c root_scratchpad_hide: disable fullscreen descendants 2019-12-16 12:01:42 -05:00
view.c smart_borders: separate smartness from edge types 2019-11-04 21:16:27 -05:00
workspace.c workspace_split: focus middle if workspace focused 2019-08-14 13:19:16 +09:00