Store sway_outputs so that they can be reenabled

This commit is contained in:
Brian Ashworth 2018-06-05 17:56:32 -04:00
parent 22c1c4beb4
commit a1b5b93d29
11 changed files with 118 additions and 33 deletions

View file

@ -255,7 +255,6 @@ static struct sway_container *container_output_destroy(
}
}
wl_list_remove(&output->sway_output->destroy.link);
wl_list_remove(&output->sway_output->mode.link);
wl_list_remove(&output->sway_output->transform.link);
wl_list_remove(&output->sway_output->scale.link);
@ -265,6 +264,7 @@ static struct sway_container *container_output_destroy(
// clear the wlr_output reference to this container
output->sway_output->wlr_output->data = NULL;
output->sway_output->swayc = NULL;
wlr_log(L_DEBUG, "OUTPUT: Destroying output '%s'", output->name);
_container_destroy(output);