mirror of
https://github.com/swaywm/sway.git
synced 2025-11-14 06:59:47 -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);
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ void layout_init(void) {
|
|||
|
||||
root_container.sway_root = calloc(1, sizeof(*root_container.sway_root));
|
||||
root_container.sway_root->output_layout = wlr_output_layout_create();
|
||||
root_container.sway_root->outputs = create_list();
|
||||
wl_list_init(&root_container.sway_root->xwayland_unmanaged);
|
||||
wl_signal_init(&root_container.sway_root->events.new_container);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue