mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
output: add wlr_output_event_present.commit_seq
This is set to the value of wlr_output.commit_seq when the frame has been submitted. This allows tracking presentation with more then 1 full frame of latency. References: https://github.com/swaywm/wlroots/issues/1917
This commit is contained in:
parent
cde544de81
commit
6c649bab53
3 changed files with 7 additions and 0 deletions
|
|
@ -569,6 +569,7 @@ void wlr_output_send_present(struct wlr_output *output,
|
|||
struct wlr_output_event_present _event = {0};
|
||||
if (event == NULL) {
|
||||
event = &_event;
|
||||
event->commit_seq = output->commit_seq;
|
||||
}
|
||||
|
||||
event->output = output;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue