layer_shell: order destroying before sway_output

Both sway_output and sway_layer_shell listen to wlr's output destroy event,
but sway_layer_shell needs to access into sway_output's data strucure and needs
to be destroyed first.

Resolve this by making sway_layer_shell listen to a new event that happens at
start of sway_output's destroy handler
This commit is contained in:
Dominique Martinet 2018-06-26 21:19:38 +09:00
parent 08800c8ee2
commit 6856866a61
3 changed files with 10 additions and 4 deletions

View file

@ -32,6 +32,10 @@ struct sway_output {
struct wl_list link;
pid_t bg_pid;
struct {
struct wl_signal destroy;
} events;
};
void output_damage_whole(struct sway_output *output);