[mutter] tests/runner: Check compositor type instead of X11 policy
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter] tests/runner: Check compositor type instead of X11 policy
- Date: Mon, 17 May 2021 16:34:29 +0000 (UTC)
commit 270f1cf7a5477479df330dfb114c260c7e84bc78
Author: Jonas Ã…dahl <jadahl gmail com>
Date: Thu Feb 25 16:52:09 2021 +0100
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>
src/tests/test-runner.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/tests/test-runner.c b/src/tests/test-runner.c
index dcfdf3d154..eb15a0752c 100644
--- a/src/tests/test-runner.c
+++ b/src/tests/test-runner.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]