swayfx/sway
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
..
commands Refactor destroy functions and save workspaces when there's no outputs 2018-08-24 22:17:28 +10:00
config Refactor destroy functions and save workspaces when there's no outputs 2018-08-24 22:17:28 +10:00
desktop Refactor destroy functions and save workspaces when there's no outputs 2018-08-24 22:17:28 +10:00
input Refactor destroy functions and save workspaces when there's no outputs 2018-08-24 22:17:28 +10:00
tree Refactor destroy functions and save workspaces when there's no outputs 2018-08-24 22:17:28 +10:00
base64.c Rework get_clipboard implementation 2017-07-07 21:51:34 +02:00
commands.c commands: add nop 2018-08-18 15:50:26 +01:00
config.c Implement iterators per container type 2018-08-18 23:38:54 +10:00
criteria.c Implement iterators per container type 2018-08-18 23:38:54 +10:00
debug-tree.c Merge pull request #2478 from RyanDwyer/standardise-debug 2018-08-19 10:29:29 -04:00
decoration.c Handle views created after decoration mode is sent for xdg-shell 2018-08-06 15:20:30 +01:00
ipc-json.c Add app_id and class to get_tree output 2018-08-21 20:51:01 -04:00
ipc-server.c Implement iterators per container type 2018-08-18 23:38:54 +10:00
main.c Use enum for damage debug options 2018-08-19 16:17:24 +10:00
meson.build commands: add nop 2018-08-18 15:50:26 +01:00
security.c Add minimal config subsystem 2017-12-05 10:40:55 +01:00
server.c Standardise debug variables 2018-08-19 16:17:24 +10:00
sway-bar.5.scd Add sway-bar(5) 2018-05-11 21:13:43 -04:00
sway-input.5.scd Escaping underscores in tap_button_map 2018-07-29 14:47:53 +02:00
sway.1.scd delete references to swaygrab 2018-07-30 16:24:46 +01:00
sway.5.scd commands: complete assign command 2018-08-18 17:25:06 +01:00
swaynag.c Fix compiler errors. 2018-08-05 00:24:44 -07:00