From: Matthias Clasen Date: Thu, 22 Sep 2022 00:55:46 +0000 (-0400) Subject: Make the portals debug flag always available X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~20^2~1^2~39^2~24 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fa1c461c13da822da7015673c5f70b2a606b7d33;p=gtk4.git Make the portals debug flag always available No need to restrict this to debug builds. --- diff --git a/gdk/gdk.c b/gdk/gdk.c index 46abff469f..90f3c9ecd5 100644 --- a/gdk/gdk.c +++ b/gdk/gdk.c @@ -117,7 +117,7 @@ static const GdkDebugKey gdk_debug_keys[] = { { "selection", GDK_DEBUG_SELECTION, "Information about selections" }, { "clipboard", GDK_DEBUG_CLIPBOARD, "Information about clipboards" }, { "nograbs", GDK_DEBUG_NOGRABS, "Disable pointer and keyboard grabs (X11)", TRUE }, - { "portals", GDK_DEBUG_PORTALS, "Force the use of portals" }, + { "portals", GDK_DEBUG_PORTALS, "Force the use of portals", TRUE }, { "gl-disable", GDK_DEBUG_GL_DISABLE, "Disable OpenGL support" }, { "gl-software", GDK_DEBUG_GL_SOFTWARE, "Force OpenGL software rendering" }, { "gl-texture-rect", GDK_DEBUG_GL_TEXTURE_RECT, "Use OpenGL texture rectangle extension" }, @@ -361,7 +361,7 @@ gdk_running_in_sandbox (void) gboolean gdk_should_use_portal (void) { - if (GDK_DISPLAY_DEBUG_CHECK (NULL, PORTALS)) + if (gdk_display_get_debug_flags (NULL) & GDK_DEBUG_PORTALS) return TRUE; if (gdk_running_in_sandbox ())