From 2af8cc769a4cb2e47d6ec75aa62bb8e565578a24 Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Thu, 14 Oct 2021 22:40:12 +0300 Subject: output: add presented flag to presentation event --- backend/x11/output.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'backend/x11') diff --git a/backend/x11/output.c b/backend/x11/output.c index 2f996c10..3ad7b4a4 100644 --- a/backend/x11/output.c +++ b/backend/x11/output.c @@ -690,9 +690,11 @@ void handle_x11_present_event(struct wlr_x11_backend *x11, flags |= WLR_OUTPUT_PRESENT_ZERO_COPY; } + bool presented = complete_notify->mode != XCB_PRESENT_COMPLETE_MODE_SKIP; struct wlr_output_event_present present_event = { .output = &output->wlr_output, .commit_seq = complete_notify->serial, + .presented = presented, .when = &t, .seq = complete_notify->msc, .flags = flags, -- cgit v1.2.3