swayfx/sway/tree
Pedro Côrte-Real e3a3917d3a Layout tiled using a width/height fraction
Instead of using container->width/height as both the input and output
of the layout calculation have container->width_fraction/height_fraction
as the share of the parent this container occupies and calculate the
layout based on that. That way the container arrangement can always be
recalculated even if width/height have been altered by things like
fullscreen.

To do this several parts are reworked:

- The vertical and horizontal arrangement code is ajusted to work with
  fractions instead of directly with width/height
- The resize code is then changed to manipulate the fractions when
  working on tiled containers.
- Finally the places that manipulated width/height are adjusted to
  match. The adjusted parts are container split, swap, and the input
  seat code.

It's possible that some parts of the code are now adjusting width and
height only for those to be immediately recalculated. That's harmless
and since non-tiled containers are still sized with width/height
directly it may avoid breaking other corner cases.

Fixes #3547
Fixes #4297
2019-07-14 11:13:55 -04:00
..
arrange.c Layout tiled using a width/height fraction 2019-07-14 11:13:55 -04:00
container.c Layout tiled using a width/height fraction 2019-07-14 11:13:55 -04:00
node.c Fix scratchpad fullscreen behavior and crash 2019-04-13 08:48:37 -06:00
output.c swaybg: one instance for all outputs 2019-04-04 20:08:21 +03:00
root.c Fix sway crashes for scratchpad layouts 2019-06-16 12:29:16 -04:00
view.c tree: set correct border value before creating floater 2019-06-27 11:13:02 -04:00
workspace.c ws-output-priority: fix logic issue in find_output 2019-06-23 09:57:38 +03:00