tests/runner: Check compositor type instead of X11 policy

It's practically equivalent, and means we can soon ditch the global.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1833>
This commit is contained in:
Jonas Ådahl 2021-02-25 16:52:09 +01:00 committed by Marge Bot
parent 6c1793b7d3
commit 270f1cf7a5

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_X11_DISPLAY_POLICY_MANDATORY)
if (!meta_is_wayland_compositor ())
{
test_wait_for_x11_display ();
on_x11_display_opened (display, test);