mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-03-23 05:35:51 -04:00
protocol: clarify wl_surface.destroy with pending release callbacks
Since the client cannot destroy wl_callback objects itself, the compositor must send wl_callback.done. Signed-off-by: Julian Orth <ju.orth@gmail.com>
This commit is contained in:
parent
cba2754230
commit
a89b7df588
1 changed files with 6 additions and 3 deletions
|
|
@ -1971,9 +1971,12 @@
|
|||
The callback_data passed in the wl_callback.done event is unused and
|
||||
is always zero.
|
||||
|
||||
Sending this request without attaching a non-null buffer in the same
|
||||
content update is a protocol error. The compositor will send the
|
||||
no_buffer error in this case.
|
||||
If the wl_surface is destroyed while it contains uncommitted release
|
||||
callbacks, the wl_callback.done event is sent immediately.
|
||||
|
||||
If a content update is committed and contains release callbacks, it must
|
||||
also contain a non-null buffer. Otherwise, the compositor sends the
|
||||
no_buffer error.
|
||||
</description>
|
||||
<arg name="callback" type="new_id" interface="wl_callback" summary="callback object for the release"/>
|
||||
</request>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue