From fe84bfc8d92c07c5c58c2b90e9884d74caa7bdb8 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Fri, 14 Jul 2023 15:16:12 +0200 Subject: scene: add wlr_scene_output_sample_event This contains the output and a bool indicating direct scan-out. --- include/wlr/types/wlr_scene.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index b00f33b4..2dd9401f 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -140,6 +140,11 @@ struct wlr_scene_outputs_update_event { size_t size; }; +struct wlr_scene_output_sample_event { + struct wlr_scene_output *output; + bool direct_scanout; +}; + /** A scene-graph node displaying a buffer */ struct wlr_scene_buffer { struct wlr_scene_node node; @@ -151,7 +156,7 @@ struct wlr_scene_buffer { struct wl_signal outputs_update; // struct wlr_scene_outputs_update_event struct wl_signal output_enter; // struct wlr_scene_output struct wl_signal output_leave; // struct wlr_scene_output - struct wl_signal output_sample; // struct wlr_scene_output + struct wl_signal output_sample; // struct wlr_scene_output_sample_event struct wl_signal frame_done; // struct timespec } events; -- cgit v1.2.3