diff --git a/gtk/a11y/gtkatspiroot.c b/gtk/a11y/gtkatspiroot.c index 47d6f889ba..7e62f9243e 100644 --- a/gtk/a11y/gtkatspiroot.c +++ b/gtk/a11y/gtkatspiroot.c @@ -769,7 +769,7 @@ on_registration_reply (GObject *gobject, * sandbox to allow event registration signals to propagate, so we * check if the version of the Flatpak portal is recent enough. */ - if (gdk_should_use_portal () && + if (gdk_running_in_sandbox () && !check_flatpak_portal_version (7)) { GTK_DEBUG (A11Y, "Sandboxed does not allow event listener registration");