mirror of
https://gitlab.freedesktop.org/wayland/wayland-protocols.git
synced 2025-12-30 00:20:12 +01:00
xdg-toplevel-icon: add error for destroyed wl_buffer
This requirement was missing an error code. Signed-off-by: Simon Ser <contact@emersion.fr> References: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/issues/201
This commit is contained in:
parent
d1d185c61f
commit
c4df317ea6
1 changed files with 6 additions and 2 deletions
|
|
@ -136,6 +136,9 @@
|
|||
<entry name="immutable"
|
||||
summary="the icon has already been assigned to a toplevel and must not be changed"
|
||||
value="2"/>
|
||||
<entry name="no_buffer"
|
||||
summary="the provided buffer has been destroyed before the toplevel icon"
|
||||
value="3"/>
|
||||
</enum>
|
||||
|
||||
<request name="destroy" type="destructor">
|
||||
|
|
@ -185,8 +188,9 @@
|
|||
overrides the preexisting pixel data.
|
||||
|
||||
The wl_buffer must be kept alive for as long as the xdg_toplevel_icon
|
||||
it is associated with is not destroyed. The buffer contents must not be
|
||||
modified after it was assigned to the icon.
|
||||
it is associated with is not destroyed, otherwise a 'no_buffer' error
|
||||
is raised. The buffer contents must not be modified after it was
|
||||
assigned to the icon.
|
||||
|
||||
If this request is made after the icon has been assigned to a toplevel
|
||||
via 'set_icon', a 'immutable' error must be raised.
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue