aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/output.h
diff options
context:
space:
mode:
authorLibravatar Dominique Martinet <asmadeus@codewreck.org>2018-06-26 21:19:38 +0900
committerLibravatar Dominique Martinet <asmadeus@codewreck.org>2018-06-26 21:20:56 +0900
commit6856866a612c9f0708a42cbe6d9627173d9e3569 (patch)
tree14be83d7e63450352c85e9723977c5f1001ae3c7 /include/sway/output.h
parentlayer_shell: cleanup output link on output destroy (diff)
downloadsway-6856866a612c9f0708a42cbe6d9627173d9e3569.tar.gz
sway-6856866a612c9f0708a42cbe6d9627173d9e3569.tar.zst
sway-6856866a612c9f0708a42cbe6d9627173d9e3569.zip
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
Diffstat (limited to 'include/sway/output.h')
-rw-r--r--include/sway/output.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sway/output.h b/include/sway/output.h
index 70f746dc..8180ce3d 100644
--- a/include/sway/output.h
+++ b/include/sway/output.h
@@ -32,6 +32,10 @@ struct sway_output {
32 struct wl_list link; 32 struct wl_list link;
33 33
34 pid_t bg_pid; 34 pid_t bg_pid;
35
36 struct {
37 struct wl_signal destroy;
38 } events;
35}; 39};
36 40
37void output_damage_whole(struct sway_output *output); 41void output_damage_whole(struct sway_output *output);