aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2023-07-14 15:16:12 +0200
committerSimon Ser <contact@emersion.fr>2023-07-14 15:16:12 +0200
commitfe84bfc8d92c07c5c58c2b90e9884d74caa7bdb8 (patch)
tree82dfeb9d3e482822c95fc17e1c73246235c0dc7c /include/wlr
parent88942d43fd874292a7a56a90a0452314d99ddff9 (diff)
scene: add wlr_scene_output_sample_event
This contains the output and a bool indicating direct scan-out.
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_scene.h7
1 files changed, 6 insertions, 1 deletions
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;