mirror of
https://github.com/swaywm/sway.git
synced 2025-11-24 06:59:51 -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
|
|
@ -128,6 +128,10 @@ void apply_output_config(struct output_config *oc, struct sway_container *output
|
|||
struct wlr_output *wlr_output = output->sway_output->wlr_output;
|
||||
|
||||
if (oc && oc->enabled == 0) {
|
||||
if (output->sway_output->bg_pid != 0) {
|
||||
terminate_swaybg(output->sway_output->bg_pid);
|
||||
output->sway_output->bg_pid = 0;
|
||||
}
|
||||
container_destroy(output);
|
||||
wlr_output_layout_remove(root_container.sway_root->output_layout,
|
||||
wlr_output);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue