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.
This commit is contained in:
Jasper St. Pierre 2014-01-31 15:55:48 -05:00 committed by Kristian Høgsberg
parent 91974dad1c
commit 338dbd7619

View file

@ -45,6 +45,8 @@
The object returned by this request will be destroyed by the The object returned by this request will be destroyed by the
compositor after the callback is fired and as such the client must not compositor after the callback is fired and as such the client must not
attempt to use it after that point. attempt to use it after that point.
The data passed in the callback is the event serial.
</description> </description>
<arg name="callback" type="new_id" interface="wl_callback"/> <arg name="callback" type="new_id" interface="wl_callback"/>
</request> </request>
@ -170,7 +172,7 @@
<description summary="done event"> <description summary="done event">
Notify the client when the related request is done. Notify the client when the related request is done.
</description> </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> </event>
</interface> </interface>
@ -1076,6 +1078,8 @@
The object returned by this request will be destroyed by the The object returned by this request will be destroyed by the
compositor after the callback is fired and as such the client must not compositor after the callback is fired and as such the client must not
attempt to use it after that point. attempt to use it after that point.
The data passed in the callback is the current time, in milliseconds.
</description> </description>
<arg name="callback" type="new_id" interface="wl_callback"/> <arg name="callback" type="new_id" interface="wl_callback"/>