macos: Respect the default-settings debug key

This makes our behavior more consistent across platforms.
The suggestion came up in discussion in #6545.
This commit is contained in:
Matthias Clasen
2024-04-23 07:52:25 -04:00
parent 8f15f6959c
commit a2854af325

View File

@@ -77,6 +77,9 @@ gdk_macos_display_get_setting (GdkDisplay *display,
const char *setting,
GValue *value)
{
if (gdk_display_get_debug_flags (display) & GDK_DEBUG_DEFAULT_SETTINGS)
return FALSE;
return _gdk_macos_display_get_setting (GDK_MACOS_DISPLAY (display), setting, value);
}