From 9ecbfe366596f627e843886d94e47097e19df5d5 Mon Sep 17 00:00:00 2001 From: Ronan Pigott Date: Sun, 24 Oct 2021 18:51:16 -0700 Subject: [PATCH] output: emit node::destroy event Now output_begin_destroy emits the node::destroy event similar to workspace_begin_destroy. It currently has no listeners, since they listen to output::disable or wlr_output::destroy instead. --- sway/tree/output.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sway/tree/output.c b/sway/tree/output.c index 8eefcee3..ad8d2482 100644 --- a/sway/tree/output.c +++ b/sway/tree/output.c @@ -286,6 +286,7 @@ void output_begin_destroy(struct sway_output *output) { return; } sway_log(SWAY_DEBUG, "Destroying output '%s'", output->wlr_output->name); + wl_signal_emit(&output->node.events.destroy, &output->node); output->node.destroying = true; node_set_dirty(&output->node);