diff options
author | Simon Ser <contact@emersion.fr> | 2021-07-09 17:06:28 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2021-07-09 17:25:02 -0400 |
commit | a0baba4fa0fc391aaf896618fe882fd321a1cbb7 (patch) | |
tree | 7370b71760007c65cda399b2b902dee03c8db560 /include/wlr | |
parent | 0abb67c478208ac656d86974477ff640900a9128 (diff) |
buffer: add wlr_client_buffer.source
This stores a weak reference to the source buffer.
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_buffer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_buffer.h b/include/wlr/types/wlr_buffer.h index 6327bbfb..d305f4d4 100644 --- a/include/wlr/types/wlr_buffer.h +++ b/include/wlr/types/wlr_buffer.h @@ -136,10 +136,15 @@ struct wlr_client_buffer { * client destroys the buffer before it has been released. */ struct wlr_texture *texture; + /** + * The buffer this client buffer was created from. NULL if destroyed. + */ + struct wlr_buffer *source; // private state struct wl_listener resource_destroy; + struct wl_listener source_destroy; // If the client buffer has been created from a wl_shm buffer uint32_t shm_source_format; |