wayland: Respect GDK_DEBUG=default-settings

You can get this in other ways for Wayland (by
setting GSETTINGS_BACKEND=memory), but it is better
to be consistent across backends.
This commit is contained in:
Matthias Clasen 2020-06-28 11:13:07 -04:00
parent 30eca5a523
commit d46b04631e

View File

@ -2079,6 +2079,9 @@ gdk_wayland_display_get_setting (GdkDisplay *display,
{
TranslationEntry *entry;
if (GDK_DISPLAY_DEBUG_CHECK (display, DEFAULT_SETTINGS))
return FALSE;
if (GDK_WAYLAND_DISPLAY (display)->settings != NULL &&
g_hash_table_size (GDK_WAYLAND_DISPLAY (display)->settings) == 0)
return FALSE;