mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-11 05:00:07 +00:00
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:
parent
fc1d18af61
commit
39a30d7ad2
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user