Skip to content
This repository has been archived by the owner on Nov 1, 2021. It is now read-only.

Commit

Permalink
presentation-time: don't send presented on discard
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Primak authored and emersion committed Oct 15, 2021
1 parent 2af8cc7 commit 2edf468
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions types/wlr_presentation_time.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,11 @@ static void feedback_handle_output_present(struct wl_listener *listener,
return;
}

struct wlr_presentation_event event = {0};
wlr_presentation_event_from_output(&event, output_event);
wlr_presentation_feedback_send_presented(feedback, &event);
if (output_event->presented) {
struct wlr_presentation_event event = {0};
wlr_presentation_event_from_output(&event, output_event);
wlr_presentation_feedback_send_presented(feedback, &event);
}
wlr_presentation_feedback_destroy(feedback);
}

Expand Down

0 comments on commit 2edf468

Please sign in to comment.