From a5ef9304fe342cf012aba36cef066f61b03236d7 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Wed, 18 Nov 2015 09:44:11 -0600 Subject: protocol: Remove incorrect statement that attach must precede damage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The documentation for wl_surface.commit makes it clear that the application of damage follows attach during the commit, so it doesn't matter what order the app sends the requests. Many existing apps post damage before attaching a buffer already, and it's really quite reasonable to do so. Signed-off-by: Derek Foreman Reviewed-by: Jonas Ã…dahl Reviewed-by: Daniel Stone --- protocol/wayland.xml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'protocol') diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 9c22d45..525e092 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -1095,10 +1095,8 @@ This request is used to describe the regions where the pending buffer is different from the current surface contents, and where - the surface therefore needs to be repainted. The pending buffer - must be set by wl_surface.attach before sending damage. The - compositor ignores the parts of the damage that fall outside of - the surface. + the surface therefore needs to be repainted. The compositor + ignores the parts of the damage that fall outside of the surface. Damage is double-buffered state, see wl_surface.commit. -- cgit v1.2.3-70-g09d2