From 68dfa1183f937a9a34d0a8582e4ffe5eace4a32d Mon Sep 17 00:00:00 2001 From: Kirill Primak Date: Sat, 15 Oct 2022 20:05:34 +0300 Subject: [PATCH] protocol: remove wl_subsurface lifetime contradiction This statement assumes that a wl_surface can be destroyed before the corresponding wl_subsurface, which is not true, as wl_surface description explicitly states that the role object must be destroyed before the wl_surface itself. Signed-off-by: Kirill Primak --- protocol/wayland.xml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 99732c57..6589d5e8 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -2938,12 +2938,10 @@ synchronized mode, and then assume that all its child and grand-child sub-surfaces are synchronized, too, without explicitly setting them. - If the wl_surface associated with the wl_subsurface is destroyed, the - wl_subsurface object becomes inert. Note, that destroying either object - takes effect immediately. If you need to synchronize the removal - of a sub-surface to the parent surface update, unmap the sub-surface - first by attaching a NULL wl_buffer, update parent, and then destroy - the sub-surface. + Destroying a sub-surface takes effect immediately. If you need to + synchronize the removal of a sub-surface to the parent surface update, + unmap the sub-surface first by attaching a NULL wl_buffer, update parent, + and then destroy the sub-surface. If the parent wl_surface object is destroyed, the sub-surface is unmapped.