a11y: Emit child notification when toplevels get hidden

When a toplevel window gets hidden (and not destroyed),
the frontend code set the HIDDEN state, and we need to
emit child notification when that happens.
This commit is contained in:
Matthias Clasen 2020-10-24 13:17:20 -04:00
parent 89a8c89663
commit 274f9ad919

View File

@ -867,7 +867,13 @@ gtk_at_spi_context_state_change (GtkATContext *ctx,
GTK_ACCESSIBLE (widget));
}
else
g_warning ("Setting GTK_ACCESSIBLE_STATE_HIDDEN on toplevels is not supported");
{
gtk_at_spi_root_child_changed (self->root,
hidden ? GTK_ACCESSIBLE_CHILD_STATE_REMOVED
: GTK_ACCESSIBLE_CHILD_STATE_ADDED,
G_MAXUINT,
widget);
}
}
if (changed_states & GTK_ACCESSIBLE_STATE_CHANGE_BUSY)