sway-patched-tray-menu-github/sway/tree
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
..
arrange.c Fix crash when view maps while locked 2018-10-13 19:15:04 +10:00
container.c Introduce seat_set_raw_focus and remove notify argument from seat_set_focus_warp 2018-10-15 21:06:24 +10:00
node.c ipc: handle NULL cases for node_get_output 2018-09-15 09:42:49 +01:00
output.c Fix crash when view unmaps while no outputs connected 2018-10-20 13:07:33 +10:00
root.c Fix hotplugging down to zero outputs 2018-09-30 11:58:56 +10:00
view.c Introduce cursor_rebase 2018-10-19 22:47:54 +10:00
workspace.c Fix crash when view unmaps while no outputs connected 2018-10-20 13:07:33 +10:00