swayfx/sway
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
..
commands Layout tiled using a width/height fraction 2019-07-14 11:13:55 -04:00
config config/output: correctly set width/height in apply 2019-07-10 14:03:15 -04:00
desktop use surface coordinates for damaging buffers 2019-06-22 12:16:32 +03:00
input Layout tiled using a width/height fraction 2019-07-14 11:13:55 -04:00
tree Layout tiled using a width/height fraction 2019-07-14 11:13:55 -04:00
commands.c config: fix find_handler logic 2019-06-20 10:13:58 +03:00
config.c cmd_bindswitch: add option to execute on reload 2019-07-09 10:00:57 +03:00
criteria.c criteria: fix __focused__ when no focus or unset 2019-03-23 09:53:23 +02:00
decoration.c Fix double free when unmapping any view 2018-11-15 15:22:09 +10:00
ipc-json.c calibration_matrix: add the current matrix to the IPC description for libinput devices 2019-07-05 18:41:56 +03:00
ipc-server.c Fix the payload type returned by IPC 2019-04-16 23:48:44 -04:00
main.c bindings: defer while initiailizing 2019-06-12 07:56:41 +03:00
meson.build Add calibration_matrix config option 2019-07-05 18:41:56 +03:00
security.c Replace _XOPEN_SOURCE with _POSIX_C_SOURCE 2018-11-25 17:19:43 +01:00
server.c add seat sub command 'xcursor_theme' 2019-06-05 11:00:10 -04:00
sway-bar.5.scd Add swaybar protocol documentation 2019-05-30 10:54:23 -04:00
sway-input.5.scd Add calibration_matrix config option 2019-07-05 18:41:56 +03:00
sway-ipc.7.scd calibration_matrix: add the current matrix to the IPC description for libinput devices 2019-07-05 18:41:56 +03:00
sway-output.5.scd Implement output toggle 2019-05-14 00:11:04 -04:00
sway.1.scd Update language in sway.desktop & sway(1) 2019-03-10 15:09:52 -04:00
sway.5.scd cmd_bindswitch: add option to execute on reload 2019-07-09 10:00:57 +03:00
swaynag.c Spawn swaynag as a wayland client 2019-04-14 12:41:59 +03:00
xdg_decoration.c Fix xdg-decoration unconfigured if set before first commit 2019-05-03 15:37:32 -06:00