mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05:00
Fix layer surface crash on output destroy
Before freeing sway_output, NULL the wlr_output reference to it. Check for that NULL in layer_shell handle_destroy. Don't damage null container in unmap. Additionaly, terminate swaybg if its output is being disabled.
This commit is contained in:
parent
0e51c7be44
commit
22170bde77
3 changed files with 14 additions and 2 deletions
|
|
@ -156,6 +156,9 @@ static struct sway_container *container_output_destroy(
|
|||
wl_list_remove(&output->sway_output->damage_destroy.link);
|
||||
wl_list_remove(&output->sway_output->damage_frame.link);
|
||||
|
||||
// clear the wlr_output reference to this container
|
||||
output->sway_output->wlr_output->data = NULL;
|
||||
|
||||
wlr_log(L_DEBUG, "OUTPUT: Destroying output '%s'", output->name);
|
||||
_container_destroy(output);
|
||||
return &root_container;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue