mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
output: add presented flag to presentation event
This commit is contained in:
parent
1089b7b8d6
commit
2af8cc769a
6 changed files with 11 additions and 2 deletions
|
|
@ -959,8 +959,8 @@ void wlr_output_send_present(struct wlr_output *output,
|
|||
assert(event);
|
||||
event->output = output;
|
||||
|
||||
struct timespec now;
|
||||
if (event->when == NULL) {
|
||||
if (event->presented && event->when == NULL) {
|
||||
struct timespec now;
|
||||
clockid_t clock = wlr_backend_get_presentation_clock(output->backend);
|
||||
errno = 0;
|
||||
if (clock_gettime(clock, &now) != 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue