From 2a63f4fc61185693c8917b28863eb9739096026f Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sat, 19 Oct 2019 14:46:37 +0000 Subject: [PATCH] protocol/screencopy: Add damage reporting --- protocol/wlr-screencopy-unstable-v1.xml | 32 +++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/protocol/wlr-screencopy-unstable-v1.xml b/protocol/wlr-screencopy-unstable-v1.xml index a7a2d172..e4c21f80 100644 --- a/protocol/wlr-screencopy-unstable-v1.xml +++ b/protocol/wlr-screencopy-unstable-v1.xml @@ -2,6 +2,7 @@ Copyright © 2018 Simon Ser + Copyright © 2019 Andri Yngvason Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), @@ -37,7 +38,7 @@ interface version number is reset. - + This object is a manager which offers requests to start capturing from a source. @@ -79,7 +80,7 @@ - + This object represents a single frame. @@ -175,5 +176,32 @@ Destroys the frame. This request can be sent at any time by the client. + + + + + Same as copy, except it waits until there is damage to copy. + + + + + + + This event is sent right before the ready event when copy_with_damage is + requested. It may be generated multiple times for each copy_with_damage + request. + + The arguments describe a box around an area that has changed since the + last copy request that was derived from the current screencopy manager + instance. + + The union of all regions received between the call to copy_with_damage + and a ready event is the total damage since the prior ready event. + + + + + +