mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
wlr_scene: Add primary_output property to wlr_scene_buffer
This commit is contained in:
parent
dfeb1309a8
commit
a53eccf2af
2 changed files with 19 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue