main: Make it possible to set properties when overriding configuration

This makes it possible to pass custom properties to backends when
constructing tests. This will be used to create "headless" native
backend instances for testing the headless native backend.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1698>
This commit is contained in:
Jonas Ådahl
2021-01-19 17:46:54 +01:00
committed by Marge Bot
parent 1e2ef9023d
commit 9bf57f82d3
6 changed files with 71 additions and 10 deletions

View File

@ -1192,7 +1192,8 @@ main (int argc, char *argv[])
meta_plugin_manager_load (test_get_plugin_name ());
meta_override_compositor_configuration (META_COMPOSITOR_TYPE_WAYLAND,
META_TYPE_BACKEND_TEST);
META_TYPE_BACKEND_TEST,
NULL);
meta_init ();
meta_register_with_session ();