summaryrefslogtreecommitdiff
path: root/protocol
diff options
context:
space:
mode:
authorJonas Ådahl <jadahl@gmail.com>2015-03-18 16:20:51 +0800
committerJonas Ådahl <jadahl@gmail.com>2015-05-05 14:17:01 +0800
commit49d77d20ae17e1ee8ca462997b3f73a58eceb57f (patch)
treecc9c8d265e18de934d9b44413e8bd8fd97ee01e5 /protocol
parent29612053e5e3924a225a5f7f51fd5a69276f39da (diff)
downloadweston-49d77d20ae17e1ee8ca462997b3f73a58eceb57f.tar.gz
xdg-shell: Require proper object tree destruction
Require all child objects to be destroyed before the parent. In other words, all popups and surfaces created by one xdg_shell instance needs to be destroyed before the xdg_shell object, otherwise a protocol error is raised. Signed-off-by: Jonas Ådahl <jadahl@gmail.com> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com> Acked-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Diffstat (limited to 'protocol')
-rw-r--r--protocol/xdg-shell.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/protocol/xdg-shell.xml b/protocol/xdg-shell.xml
index 68cf4699..866e3300 100644
--- a/protocol/xdg-shell.xml
+++ b/protocol/xdg-shell.xml
@@ -49,6 +49,7 @@
<enum name="error">
<entry name="role" value="0" summary="given wl_surface has another role"/>
+ <entry name="defunct_surfaces" value="1" summary="xdg_shell was destroyed before children"/>
</enum>
<request name="destroy" type="destructor">
@@ -56,9 +57,8 @@
Destroy this xdg_shell object.
Destroying a bound xdg_shell object while there are surfaces
- still alive with roles from this interface is illegal and will
- result in a protocol error. Make sure to destroy all surfaces
- before destroying this object.
+ still alive created by this xdg_shell object instance is illegal
+ and will result in a protocol error.
</description>
</request>