summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2014-01-31 20:55:48 (GMT)
committerKristian Høgsberg <krh@bitplanet.net>2014-01-31 21:10:12 (GMT)
commit338dbd76194fa58b4b443def006e986f64f10769 (patch)
treef50d67f9053503d57fb15366ce887526b6452f89
parent91974dad1c8e0e774e9fda87adffeab1c0e6104a (diff)
downloadwayland-338dbd76194fa58b4b443def006e986f64f10769.tar.gz
wayland-338dbd76194fa58b4b443def006e986f64f10769.tar.xz
protocol: Fix documentation for the parameter of wl_callback
The parameter here is an opaque integer, rather than the event serial. The "frame" callback uses this to pass the current time of day in milliseconds.
-rw-r--r--protocol/wayland.xml6
1 files changed, 5 insertions, 1 deletions
diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index b9aa9f1..26e0d5c 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -45,6 +45,8 @@
The object returned by this request will be destroyed by the
compositor after the callback is fired and as such the client must not
attempt to use it after that point.
+
+ The data passed in the callback is the event serial.
</description>
<arg name="callback" type="new_id" interface="wl_callback"/>
</request>
@@ -170,7 +172,7 @@
<description summary="done event">
Notify the client when the related request is done.
</description>
- <arg name="serial" type="uint" summary="serial of the event"/>
+ <arg name="data" type="uint" summary="request-specific data for the wl_callback"/>
</event>
</interface>
@@ -1076,6 +1078,8 @@
The object returned by this request will be destroyed by the
compositor after the callback is fired and as such the client must not
attempt to use it after that point.
+
+ The data passed in the callback is the current time, in milliseconds.
</description>
<arg name="callback" type="new_id" interface="wl_callback"/>