[mutter] backend-eglnative: Search for the xsettings schema recursively



commit d28a640960524fe3fd6beffc703bbe0eff1cafd9
Author: Daniel van Vugt <daniel van vugt canonical com>
Date:   Thu Jan 23 13:46:02 2020 +0800

    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

 clutter/clutter/egl/clutter-backend-eglnative.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/clutter/clutter/egl/clutter-backend-eglnative.c b/clutter/clutter/egl/clutter-backend-eglnative.c
index 727dd4418..8aa959cae 100644
--- a/clutter/clutter/egl/clutter-backend-eglnative.c
+++ b/clutter/clutter/egl/clutter-backend-eglnative.c
@@ -233,7 +233,7 @@ clutter_backend_egl_native_init (ClutterBackendEglNative *backend_egl_native)
   GSettingsSchemaSource *source = g_settings_schema_source_get_default ();
   GSettingsSchema *schema = g_settings_schema_source_lookup (source,
                                                              xsettings_path,
-                                                             FALSE);
+                                                             TRUE);
 
   if (!schema)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]