mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
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:
parent
8bf7d5c155
commit
fddc631599
@ -77,10 +77,20 @@ static gboolean
|
|||||||
meta_context_test_setup (MetaContext *context,
|
meta_context_test_setup (MetaContext *context,
|
||||||
GError **error)
|
GError **error)
|
||||||
{
|
{
|
||||||
|
MetaBackend *backend;
|
||||||
|
MetaSettings *settings;
|
||||||
|
|
||||||
if (!META_CONTEXT_CLASS (meta_context_test_parent_class)->setup (context,
|
if (!META_CONTEXT_CLASS (meta_context_test_parent_class)->setup (context,
|
||||||
error))
|
error))
|
||||||
return FALSE;
|
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;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user