diff options
author | Kirill Primak <vyivel@posteo.net> | 2021-10-14 22:40:12 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-10-15 09:38:58 +0200 |
commit | 2af8cc769a4cb2e47d6ec75aa62bb8e565578a24 (patch) | |
tree | bc809b9415aa3cc8b95091f4d65bc03a50310983 /backend/x11 | |
parent | 1089b7b8d638a286c70571fced969826d61143bc (diff) |
output: add presented flag to presentation event
Diffstat (limited to 'backend/x11')
-rw-r--r-- | backend/x11/output.c | 2 |
1 files changed, 2 insertions, 0 deletions
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, |