aboutsummaryrefslogtreecommitdiff
path: root/common/log.c
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2019-06-28 22:21:20 +0100
committerFurkan Sahin <furkan-dev@proton.me>2019-06-28 22:21:20 +0100
commitadbe4db896a6d9a79ba6756f8e5bb0edf73bf4ec (patch)
tree6af979d7b1c1aeed9d88f168a9a0d1e1f7e663c0 /common/log.c
parent58c8b587e440c7a56482cc5f3c4ba99b9c69a8f7 (diff)
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
Diffstat (limited to 'common/log.c')
0 files changed, 0 insertions, 0 deletions