mirror of
https://github.com/brl/mutter.git
synced 2025-08-03 15:14:46 +00:00
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:
@@ -129,7 +129,8 @@ main (int argc, char **argv)
|
||||
meta_wayland_override_display_name ("mutter-test-display");
|
||||
meta_xwayland_override_display_number (512);
|
||||
meta_override_compositor_configuration (META_COMPOSITOR_TYPE_WAYLAND,
|
||||
META_TYPE_BACKEND_X11_NESTED);
|
||||
META_TYPE_BACKEND_X11_NESTED,
|
||||
NULL);
|
||||
meta_init ();
|
||||
|
||||
module = g_module_open (NULL, 0);
|
||||
|
@@ -217,7 +217,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 ();
|
||||
|
@@ -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 ();
|
||||
|
@@ -269,7 +269,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 ();
|
||||
|
Reference in New Issue
Block a user