Rename MetaDisplayPolicy to MetaX11DisplayPolicy

This lack of X11 in the name was a bit confusing, since this is about
the X11 policy, not some policy of MetaDisplay.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1833>
This commit is contained in:
Jonas Ådahl
2021-02-25 16:19:51 +01:00
committed by Marge Bot
parent f677e0cbfb
commit 6c1793b7d3
7 changed files with 27 additions and 27 deletions

View File

@@ -51,7 +51,7 @@ init_common_pre (void)
"aborting...\n");
meta_plugin_manager_load (test_get_plugin_name ());
meta_override_x11_display_policy (META_DISPLAY_POLICY_DISABLED);
meta_override_x11_display_policy (META_X11_DISPLAY_POLICY_DISABLED);
meta_test_init ();
display = g_getenv ("DISPLAY");

View File

@@ -77,7 +77,7 @@ test_case_new (void)
TestCase *test = g_new0 (TestCase, 1);
MetaDisplay *display = meta_get_display ();
if (meta_get_x11_display_policy () == META_DISPLAY_POLICY_MANDATORY)
if (meta_get_x11_display_policy () == META_X11_DISPLAY_POLICY_MANDATORY)
{
test_wait_for_x11_display ();
on_x11_display_opened (display, test);