From a53eccf2af16cef55bb5ad85204545601584e15e Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Sun, 24 Apr 2022 22:32:58 -0400 Subject: wlr_scene: Add primary_output property to wlr_scene_buffer --- include/wlr/types/wlr_scene.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_scene.h b/include/wlr/types/wlr_scene.h index 99d6ca61..a4d05274 100644 --- a/include/wlr/types/wlr_scene.h +++ b/include/wlr/types/wlr_scene.h @@ -117,6 +117,14 @@ struct wlr_scene_buffer { struct wl_signal output_present; // struct wlr_scene_output } events; + /** + * The output that the largest area of this buffer is displayed on. + * This may be NULL if the buffer is not currently displayed on any + * outputs. This is the output that should be used for frame callbacks, + * presentation feedback, etc. + */ + struct wlr_scene_output *primary_output; + // private state uint64_t active_outputs; -- cgit v1.2.3