From 61a6f2b928bc585040a7eb02594562c2fb5d66a9 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sat, 19 Oct 2019 14:46:43 +0000 Subject: screencopy: Implement damage reporting --- include/wlr/types/wlr_screencopy_v1.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'include/wlr') 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; -- cgit v1.2.3