mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2024-11-22 15:12:26 +00:00
presentation-time: don't send presented on discard
This commit is contained in:
parent
2af8cc769a
commit
2edf468aeb
@ -289,9 +289,11 @@ static void feedback_handle_output_present(struct wl_listener *listener,
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct wlr_presentation_event event = {0};
|
if (output_event->presented) {
|
||||||
wlr_presentation_event_from_output(&event, output_event);
|
struct wlr_presentation_event event = {0};
|
||||||
wlr_presentation_feedback_send_presented(feedback, &event);
|
wlr_presentation_event_from_output(&event, output_event);
|
||||||
|
wlr_presentation_feedback_send_presented(feedback, &event);
|
||||||
|
}
|
||||||
wlr_presentation_feedback_destroy(feedback);
|
wlr_presentation_feedback_destroy(feedback);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user