diff options
author | Ronan Pigott <rpigott@berkeley.edu> | 2021-10-24 18:49:39 -0700 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-12-17 14:39:48 +0100 |
commit | ebfe432ec3064094faebe0913b2d98932d590bfd (patch) | |
tree | 8a512564f0948e673c27e3bff0e8b5aa41bb7304 /sway/desktop/layer_shell.c | |
parent | Handle border width and height on minimum floating sizes (diff) | |
download | sway-ebfe432ec3064094faebe0913b2d98932d590bfd.tar.gz sway-ebfe432ec3064094faebe0913b2d98932d590bfd.tar.zst sway-ebfe432ec3064094faebe0913b2d98932d590bfd.zip |
output: change output::destroy to output::disable
This changes output::destroy to output::disable and emits it only
once when an output is disabled, instead of twice in succession.
Diffstat (limited to 'sway/desktop/layer_shell.c')
-rw-r--r-- | sway/desktop/layer_shell.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c index db78b59f..da59016d 100644 --- a/sway/desktop/layer_shell.c +++ b/sway/desktop/layer_shell.c | |||
@@ -664,7 +664,7 @@ void handle_layer_shell_surface(struct wl_listener *listener, void *data) { | |||
664 | 664 | ||
665 | struct sway_output *output = layer_surface->output->data; | 665 | struct sway_output *output = layer_surface->output->data; |
666 | sway_layer->output_destroy.notify = handle_output_destroy; | 666 | sway_layer->output_destroy.notify = handle_output_destroy; |
667 | wl_signal_add(&output->events.destroy, &sway_layer->output_destroy); | 667 | wl_signal_add(&output->events.disable, &sway_layer->output_destroy); |
668 | 668 | ||
669 | wl_list_insert(&output->layers[layer_surface->pending.layer], | 669 | wl_list_insert(&output->layers[layer_surface->pending.layer], |
670 | &sway_layer->link); | 670 | &sway_layer->link); |