summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Primak <vyivel@eclair.cafe>2022-10-15 20:26:42 +0300
committerSimon Ser <contact@emersion.fr>2022-11-29 13:46:54 +0000
commit0dc23e380a59fcf8a670273dc65816c2cc6de472 (patch)
tree996c0308202a65ec6a17a6f5ffb33d7ec9b212b7
parent68dfa1183f937a9a34d0a8582e4ffe5eace4a32d (diff)
downloadwayland-0dc23e380a59fcf8a670273dc65816c2cc6de472.tar.gz
protocol: add defunct_role_object error
This commit adds wl_surface.defunct_role_object error, which has semantics similar to xdg_wm_base.defunct_surfaces error, and is sent when a client destroys a surface while the corresponding role object still exists. Signed-off-by: Kirill Primak <vyivel@eclair.cafe>
-rw-r--r--protocol/wayland.xml7
1 files changed, 5 insertions, 2 deletions
diff --git a/protocol/wayland.xml b/protocol/wayland.xml
index 6589d5e..a94e85c 100644
--- a/protocol/wayland.xml
+++ b/protocol/wayland.xml
@@ -1384,8 +1384,9 @@
that this request gives a role to a wl_surface. Often, this
request also creates a new protocol object that represents the
role and adds additional functionality to wl_surface. When a
- client wants to destroy a wl_surface, they must destroy this 'role
- object' before the wl_surface.
+ client wants to destroy a wl_surface, they must destroy this role
+ object before the wl_surface, otherwise a defunct_role_object error is
+ sent.
Destroying the role object does not remove the role from the
wl_surface, but it may stop the wl_surface from "playing the role".
@@ -1405,6 +1406,8 @@
<entry name="invalid_transform" value="1" summary="buffer transform value is invalid"/>
<entry name="invalid_size" value="2" summary="buffer size is invalid"/>
<entry name="invalid_offset" value="3" summary="buffer offset is invalid"/>
+ <entry name="defunct_role_object" value="4"
+ summary="surface was destroyed before its role object"/>
</enum>
<request name="destroy" type="destructor">