diff options
author | Andri Yngvason <andri@yngvason.is> | 2019-10-19 14:46:43 +0000 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-10-22 10:41:32 -0400 |
commit | 61a6f2b928bc585040a7eb02594562c2fb5d66a9 (patch) | |
tree | 8ef257919d1b26be50c0a597355c87de48e345fb /include/wlr | |
parent | 2a63f4fc61185693c8917b28863eb9739096026f (diff) |
screencopy: Implement damage reporting
Diffstat (limited to 'include/wlr')
-rw-r--r-- | include/wlr/types/wlr_screencopy_v1.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_screencopy_v1.h b/include/wlr/types/wlr_screencopy_v1.h index ab81f81a..b42ec3a8 100644 --- a/include/wlr/types/wlr_screencopy_v1.h +++ b/include/wlr/types/wlr_screencopy_v1.h @@ -27,9 +27,15 @@ struct wlr_screencopy_manager_v1 { void *data; }; +struct wlr_screencopy_v1_client { + int ref; + struct wlr_screencopy_manager_v1 *manager; + struct wl_list damages; +}; + struct wlr_screencopy_frame_v1 { struct wl_resource *resource; - struct wlr_screencopy_manager_v1 *manager; + struct wlr_screencopy_v1_client *client; struct wl_list link; enum wl_shm_format format; @@ -38,6 +44,8 @@ struct wlr_screencopy_frame_v1 { bool overlay_cursor, cursor_locked; + bool with_damage; + struct wl_shm_buffer *buffer; struct wl_listener buffer_destroy; |