mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
screencopy: Implement damage reporting
This commit is contained in:
parent
2a63f4fc61
commit
61a6f2b928
2 changed files with 208 additions and 28 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue