From 1d7983da05c27e4eb5bae4e77f18efd52f2eefb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tyrychtr?= Date: Mon, 19 Feb 2024 16:54:11 +0100 Subject: [PATCH] a11y: Don't mark properties changed for unrealized AT contexts That might cause, for example, a description change notification for a widget which was not seen by the AT previously. Fixes #6454. --- gtk/gtkatcontext.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkatcontext.c b/gtk/gtkatcontext.c index 2b1f941491..7f5120e604 100644 --- a/gtk/gtkatcontext.c +++ b/gtk/gtkatcontext.c @@ -909,7 +909,7 @@ gtk_at_context_set_accessible_property (GtkATContext *self, else res = gtk_accessible_attribute_set_remove (self->properties, property); - if (res) + if (res && self->realized) self->updated_properties |= (1 << property); }