diff options
author | Simon Ser <contact@emersion.fr> | 2021-12-03 11:06:49 +0100 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-12-03 14:56:17 +0000 |
commit | f016eca97cf046c5273c5112201588d4fdca9818 (patch) | |
tree | f213d098a9c1159e427105411a253a83ca330208 /include | |
parent | 7201aae3d607ad121ea0dfb3a50eb2c3f65b7d85 (diff) |
output: add wlr_output_event_commit.buffer
This allows output commit listeners to access the newly committed
buffer. Currently wlr_output.front_buffer is used but it'll get
removed in the next commit.
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_output.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h index 9e18a216..689b8158 100644 --- a/include/wlr/types/wlr_output.h +++ b/include/wlr/types/wlr_output.h @@ -211,6 +211,7 @@ struct wlr_output_event_commit { struct wlr_output *output; uint32_t committed; // bitmask of enum wlr_output_state_field struct timespec *when; + struct wlr_buffer *buffer; // NULL if no buffer is committed }; enum wlr_output_present_flag { |