swayfx/sway
Ryan Dwyer ed771a6a6e Fix crash when view unmaps while no outputs connected
When a view unmaps, we call workspace_consider_destroy. This function
assumed the workspace would always have an output, but this is not the
case when hotplugged down to zero. The function now handles this and
allows itself to be destroyed when there is no output.

This means that workspace_begin_destroy must remove the workspace from
the root->saved_workspaces list to avoid an eventual dangling pointer,
so it does that now.

Lastly, when an output is plugged in again and it has to create a new
initial workspace for it, we must emit the workspace::init IPC event
otherwise swaybar shows no workspaces at all. I guess when you start
sway, swaybar is started after the workspace has been created which is
why this hasn't been needed earlier.
2018-10-20 13:07:33 +10:00
..
commands Introduce cursor_rebase 2018-10-19 22:47:54 +10:00
config swaybar: show hidden bar on key event 2018-10-14 13:33:12 +01:00
desktop Merge pull request #2820 from Emantor/fix-mouse-warping-container 2018-10-17 15:57:13 +02:00
input Merge pull request #2872 from RyanDwyer/cursor-rebase 2018-10-20 05:06:03 +02:00
tree Fix crash when view unmaps while no outputs connected 2018-10-20 13:07:33 +10:00
commands.c Implement popup_during_fullscreen 2018-10-08 22:49:59 +10:00
config.c fix_edge_gaps: Allow negative values for outer gaps. 2018-10-13 17:42:49 +02:00
criteria.c Fix tiling criteria 2018-10-03 20:33:32 +10:00
debug-tree.c Turn funcs() into funcs(void) 2018-09-30 14:09:05 +03:00
decoration.c Rename view_set_csd_from_client to view_update_csd_from_client 2018-09-27 22:51:37 +10:00
ipc-json.c Implement bar bindsym 2018-10-09 08:12:46 -04:00
ipc-server.c swaybar: show hidden bar on key event 2018-10-14 13:33:12 +01:00
main.c Remove unnecessary comment 2018-10-13 20:51:29 -04:00
meson.build Implement popup_during_fullscreen 2018-10-08 22:49:59 +10:00
security.c Add minimal config subsystem 2017-12-05 10:40:55 +01:00
server.c Export XCURSOR_SIZE and XCURSOR_THEME 2018-10-17 21:10:30 +02:00
sway-bar.5.scd swaybar: add documentation for hide/hidden_state subcommands 2018-10-14 13:33:12 +01:00
sway-input.5.scd Establish sway-output(5) 2018-10-14 10:52:57 -04:00
sway-output.5.scd Establish sway-output(5) 2018-10-14 10:52:57 -04:00
sway.1.scd Establish sway-output(5) 2018-10-14 10:52:57 -04:00
sway.5.scd cmd_bind{sym,code}: Implement per-device bindings 2018-10-18 13:42:01 -04:00
swaynag.c Allow swaynag to be disabled 2018-10-08 09:59:38 -04:00
xdg_decoration.c Improve CSD logic 2018-09-27 22:51:37 +10:00