[mutter] context/test: Enable 'scale-monitor-framebuffer' backend setting



commit fddc63159946737964cf7b6e39c4512d14d9b500
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Tue Mar 2 12:02:51 2021 +0100

    context/test: Enable 'scale-monitor-framebuffer' backend setting
    
    This is done in all tests, so make life easier by doing it here.
    
    Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1861>

 src/tests/meta-context-test.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/src/tests/meta-context-test.c b/src/tests/meta-context-test.c
index a3c3915338..d798d55e45 100644
--- a/src/tests/meta-context-test.c
+++ b/src/tests/meta-context-test.c
@@ -77,10 +77,20 @@ static gboolean
 meta_context_test_setup (MetaContext  *context,
                          GError      **error)
 {
+  MetaBackend *backend;
+  MetaSettings *settings;
+
   if (!META_CONTEXT_CLASS (meta_context_test_parent_class)->setup (context,
                                                                    error))
     return FALSE;
 
+  backend = meta_get_backend ();
+  settings = meta_backend_get_settings (backend);
+  meta_settings_override_experimental_features (settings);
+  meta_settings_enable_experimental_feature (
+    settings,
+    META_EXPERIMENTAL_FEATURE_SCALE_MONITOR_FRAMEBUFFER);
+
   return TRUE;
 }
 


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