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>
This commit is contained in:
Jonas Ådahl 2021-03-02 12:02:51 +01:00
parent 8bf7d5c155
commit fddc631599

View File

@ -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;
}