swayfx/sway
Ryan Dwyer 24bcb507ec Fix hotplugging down to zero outputs
When the last output is disconnected, output_disable is called like
usual and evacuates the output to the root->saved_workspaces list. It
then calls root_for_each_container to remove (untrack) the output from
each container's outputs list. However root_for_each_container did not
iterate the saved workspaces, so when the output gets freed the
containers would have a dangling pointer in their outputs list. Upon
reconnect, container_discover_outputs would attempt to use the dangling
pointer, causing a crash.

This makes root_for_each_container check the saved workspaces list,
which fixes the problem.
2018-09-30 11:58:56 +10:00
..
commands Merge pull request #2729 from RyanDwyer/resize-return-false 2018-09-29 11:24:54 +02:00
config Handle shell special characters in bg file path 2018-09-28 23:12:24 -04:00
desktop transaction: do not use pointers for state 2018-09-28 09:18:24 +01:00
input Merge pull request #2698 from ianyfan/hide-cursor 2018-09-29 14:32:05 +02:00
tree Fix hotplugging down to zero outputs 2018-09-30 11:58:56 +10:00
base64.c Rework get_clipboard implementation 2017-07-07 21:51:34 +02:00
commands.c Fix quote handling for commands 2018-09-28 23:12:24 -04:00
config.c Rename workspace_outputs to workspace_configs and fix memory leak 2018-09-28 22:35:38 +10:00
criteria.c Fix inversed condition in criteria 2018-09-05 18:01:43 +10:00
debug-tree.c Align titles to baseline 2018-09-08 16:25:07 +10: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 ipc: add pid information for views in layout tree 2018-09-19 22:21:09 +01:00
ipc-server.c Make sway/ipc-server.c POSIX 2001 compliant 2018-09-26 20:10:53 +02:00
main.c Allow running commands on containers without focusing them 2018-09-23 08:39:11 +10:00
meson.build Introduce create_output command (for developer use) 2018-09-19 21:54:27 +10:00
security.c Add minimal config subsystem 2017-12-05 10:40:55 +01:00
server.c Merge branch 'master' into wlroots-1243 2018-09-14 21:03:59 -04:00
sway-bar.5.scd sway{,bar,input}.5: changes for generic blocks 2018-09-28 13:30:54 -04:00
sway-input.5.scd sway{,bar,input}.5: changes for generic blocks 2018-09-28 13:30:54 -04:00
sway.1.scd delete references to swaygrab 2018-07-30 16:24:46 +01:00
sway.5.scd sway{,bar,input}.5: changes for generic blocks 2018-09-28 13:30:54 -04:00
swaynag.c Fix compiler errors. 2018-08-05 00:24:44 -07:00