swayfx/sway/desktop
Ryan Dwyer b6058703fa Refactor destroy functions and save workspaces when there's no outputs
This changes the destroy functions to the following:

* output_begin_destroy
* output_destroy
* workspace_begin_destroy
* workspace_destroy
* container_begin_destroy
* container_destroy
* view_begin_destroy
* view_destroy

The terminology was `destroy` and `free`, and it has been changed to
`begin_destroy` and `destroy` respectively.

When the last output is disconnected, its workspaces will now be stashed
in the root. Upon connection of a new output they will be restored.

There is a new function `workspace_consider_destroy` which decides
whether the given workspace should be destroyed or not (ie. empty and
not visible).

Calling container_begin_destroy will no longer automatically reap the
parents. In some places we want to reap the parents and in some we
don't, so this is left to the caller.

container_reap_empty_recursive and container_reap_empty have been
combined into one function and it will recurse up the tree.
2018-08-24 22:17:28 +10:00
..
desktop.c Store geometry in the view and handle any floating view resizing 2018-08-18 15:10:06 +10:00
idle_inhibit_v1.c Fix memory leak in sway/desktop/idle_inhibit_v1.c 2018-07-17 11:35:24 -04:00
layer_shell.c Address first round review for swaynag 2018-08-01 22:47:54 -04:00
output.c Refactor destroy functions and save workspaces when there's no outputs 2018-08-24 22:17:28 +10:00
render.c Merge pull request #2478 from RyanDwyer/standardise-debug 2018-08-19 10:29:29 -04:00
transaction.c Refactor destroy functions and save workspaces when there's no outputs 2018-08-24 22:17:28 +10:00
xdg_shell.c Refactor destroy functions and save workspaces when there's no outputs 2018-08-24 22:17:28 +10:00
xdg_shell_v6.c Refactor destroy functions and save workspaces when there's no outputs 2018-08-24 22:17:28 +10:00
xwayland.c Refactor destroy functions and save workspaces when there's no outputs 2018-08-24 22:17:28 +10:00