From f59194de17905ef04631ed54a9af5e7e2d43cb35 Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Mon, 9 May 2022 14:05:16 +0200 Subject: [PATCH] protocol: removed globals allow race-free object removal Without this clarification, clients cannot reliably remove objects created transitively from a bound global. Signed-off-by: Julian Orth --- protocol/wayland.xml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/protocol/wayland.xml b/protocol/wayland.xml index 1da3db9d..2311344b 100644 --- a/protocol/wayland.xml +++ b/protocol/wayland.xml @@ -165,9 +165,13 @@ the global using the bind request, the client should now destroy that object. - The object remains valid and requests to the object will be - ignored until the client destroys it, to avoid races between - the global going away and a client sending a request to it. + Until the client destroys the object, the compositor will + ignore other requests to the object except that, for any + request that adds new objects to the compositor state, + the compositor will continue to add the new objects to + its state. These new objects transitively follow the same + rules. +