wlr_scene: Add primary_output property to wlr_scene_buffer

This commit is contained in:
Alexander Orzechowski 2022-04-24 22:32:58 -04:00
parent dfeb1309a8
commit a53eccf2af
2 changed files with 19 additions and 0 deletions

View file

@ -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;