summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2015-11-18 09:44:11 -0600
committerDerek Foreman <derekf@osg.samsung.com>2015-11-20 10:25:33 -0600
commita5ef9304fe342cf012aba36cef066f61b03236d7 (patch)
tree1e4eb895fbae151610be15cc0739fc5763a42bf6
parentb644594a2ce918e6a9d3dde5d3d60a1405a0ffd9 (diff)
downloadwayland-a5ef9304fe342cf012aba36cef066f61b03236d7.tar.gz
protocol: Remove incorrect statement that attach must precede damage
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 <derekf@osg.samsung.com> Reviewed-by: Jonas Ã…dahl <jadahl@gmail.com> Reviewed-by: Daniel Stone <daniels@collabora.com>
-rw-r--r--protocol/wayland.xml6
1 files changed, 2 insertions, 4 deletions
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 @@
<description summary="mark part of the surface damaged">
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.