backend-eglnative: Search for the xsettings schema recursively

As recommended by the docs for `g_settings_schema_source_get_default`:

> The returned source may actually consist of multiple schema sources
> from different directories, depending on which directories were given
> in XDG_DATA_DIRS and GSETTINGS_SCHEMA_DIR. For this reason, all lookups
> performed against the default source should probably be done recursively.

Now it's actually found and works again, including subpixel font smoothing.

Closes: https://gitlab.gnome.org/GNOME/gnome-shell/issues/1447

https://gitlab.gnome.org/GNOME/mutter/merge_requests/1017
This commit is contained in:
Daniel van Vugt 2020-01-23 13:46:02 +08:00 committed by Georges Basile Stavracas Neto
parent b3fbc26340
commit d28a640960

View File

@ -233,7 +233,7 @@ clutter_backend_egl_native_init (ClutterBackendEglNative *backend_egl_native)
GSettingsSchemaSource *source = g_settings_schema_source_get_default (); GSettingsSchemaSource *source = g_settings_schema_source_get_default ();
GSettingsSchema *schema = g_settings_schema_source_lookup (source, GSettingsSchema *schema = g_settings_schema_source_lookup (source,
xsettings_path, xsettings_path,
FALSE); TRUE);
if (!schema) if (!schema)
{ {