From c46b53d0b04e52b73cfe041e4bc87656b1d1ce94 Mon Sep 17 00:00:00 2001
From: Alexander Orzechowski <orzechowski.alexander@gmail.com>
Date: Wed, 18 May 2022 18:08:35 -0400
Subject: wlr_scene: Add output_enter/output_leave signals

When we destroy a scene buffer, let's make sure that we call
output_leave signals before we finish the node which will call destroy
listeners.
---
 include/wlr/types/wlr_scene.h | 7 +++++++
 1 file changed, 7 insertions(+)

(limited to 'include/wlr')

diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h
index eaa7b07c..a02a5c89 100644
--- a/include/wlr/types/wlr_scene.h
+++ b/include/wlr/types/wlr_scene.h
@@ -111,8 +111,14 @@ struct wlr_scene_buffer {
 	// May be NULL
 	struct wlr_buffer *buffer;
 
+	struct {
+		struct wl_signal output_enter; // struct wlr_scene_output
+		struct wl_signal output_leave; // struct wlr_scene_output
+	} events;
+
 	// private state
 
+	uint64_t active_outputs;
 	struct wlr_texture *texture;
 	struct wlr_fbox src_box;
 	int dst_width, dst_height;
@@ -132,6 +138,7 @@ struct wlr_scene_output {
 
 	// private state
 
+	uint8_t index;
 	bool prev_scanout;
 };
 
-- 
cgit v1.2.3