aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-05-18 18:08:35 -0400
committerAlexander Orzechowski <orzechowski.alexander@gmail.com>2022-05-19 14:17:51 -0400
commitc46b53d0b04e52b73cfe041e4bc87656b1d1ce94 (patch)
treebd872175132bd725a45cb32d8953be25c5b1672c /include/wlr
parent6ddb9e51bd90b0074402c3e4c361f83adb0e402a (diff)
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.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_scene.h7
1 files changed, 7 insertions, 0 deletions
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;
};