mirror of
https://github.com/swaywm/sway.git
synced 2025-11-05 13:29:51 -05:00
Store sway_outputs so that they can be reenabled
This commit is contained in:
parent
22c1c4beb4
commit
a1b5b93d29
11 changed files with 118 additions and 33 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue