mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-10-31 22:25:25 -04:00
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:
parent
91974dad1c
commit
338dbd7619
1 changed files with 5 additions and 1 deletions
|
|
@ -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"/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue