diff options
author | Ronan Pigott <rpigott@berkeley.edu> | 2021-10-24 18:51:16 -0700 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-12-17 14:39:48 +0100 |
commit | 9ecbfe366596f627e843886d94e47097e19df5d5 (patch) | |
tree | 9ad07267a9fc290213f844627949781d6f2b503b | |
parent | output: change output::destroy to output::disable (diff) | |
download | sway-9ecbfe366596f627e843886d94e47097e19df5d5.tar.gz sway-9ecbfe366596f627e843886d94e47097e19df5d5.tar.zst sway-9ecbfe366596f627e843886d94e47097e19df5d5.zip |
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.
-rw-r--r-- | sway/tree/output.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) { | |||
286 | return; | 286 | return; |
287 | } | 287 | } |
288 | sway_log(SWAY_DEBUG, "Destroying output '%s'", output->wlr_output->name); | 288 | sway_log(SWAY_DEBUG, "Destroying output '%s'", output->wlr_output->name); |
289 | wl_signal_emit(&output->node.events.destroy, &output->node); | ||
289 | 290 | ||
290 | output->node.destroying = true; | 291 | output->node.destroying = true; |
291 | node_set_dirty(&output->node); | 292 | node_set_dirty(&output->node); |