diff options
| author | Alexander Orzechowski <orzechowski.alexander@gmail.com> | 2022-04-24 22:32:58 -0400 | 
|---|---|---|
| committer | Alexander Orzechowski <orzechowski.alexander@gmail.com> | 2022-05-19 14:21:22 -0400 | 
| commit | a53eccf2af16cef55bb5ad85204545601584e15e (patch) | |
| tree | 1b7cec4c01690c99505cc81d789721ed794eb2d8 /include | |
| parent | dfeb1309a83ef3ab5ceb189d0b721c2b7cf5680c (diff) | |
| download | wlroots-a53eccf2af16cef55bb5ad85204545601584e15e.tar.xz | |
wlr_scene: Add primary_output property to wlr_scene_buffer
Diffstat (limited to 'include')
| -rw-r--r-- | include/wlr/types/wlr_scene.h | 8 | 
1 files changed, 8 insertions, 0 deletions
| 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; | 
