diff options
author | Simon Ser <contact@emersion.fr> | 2020-11-04 14:29:49 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-11-05 09:43:42 +0100 |
commit | 8c8164c4a6c926891c5d47f58ad4c3aa6eec8811 (patch) | |
tree | 5a26547f51b97b293abe3850ccb1eb380be2a1d6 | |
parent | ccd313e01ad58beba261ecae78c94f149093ffbb (diff) |
output: add when field to wlr_output_event_commit
Similar to the one already present in wlr_output_event_precommit.
-rw-r--r-- | include/wlr/types/wlr_output.h | 1 | ||||
-rw-r--r-- | types/wlr_output.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index 972343bc..cb742706 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -201,6 +201,7 @@ struct wlr_output_event_precommit { struct wlr_output_event_commit { struct wlr_output *output; uint32_t committed; // bitmask of enum wlr_output_state_field + struct timespec *when; }; enum wlr_output_present_flag { diff --git a/types/wlr_output.c b/types/wlr_output.c index 1c40a147..4ce7312f 100644 --- a/types/wlr_output.c +++ b/types/wlr_output.c @@ -607,6 +607,7 @@ bool wlr_output_commit(struct wlr_output *output) { struct wlr_output_event_commit event = { .output = output, .committed = output->pending.committed, + .when = &now, }; wlr_signal_emit_safe(&output->events.commit, &event); |