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.
This commit is contained in:
Lukáš Tyrychtr 2024-02-19 16:54:11 +01:00
parent d828f2477e
commit 1d7983da05

View File

@ -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);
}