atspi: Fix sandbox check

We only want to check if we are running in a sandbox here, so
use the proper api for that.
This commit is contained in:
Matthias Clasen 2024-11-18 22:24:38 -05:00
parent fc1d18af61
commit 39a30d7ad2

View File

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