1
0
Fork 0

tests/runner: Remove support running tests as an X11 WM

This hasn't worked for a while, since the test always runs the nested
backend, meaning it's a Wayland compositor. To unblock testing window
management in combination to monitor changes, lets remove the
unreachable X11 WM paths, so that we can start using virtual monitors.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2554>
This commit is contained in:
Jonas Ådahl 2022-08-03 18:42:04 +02:00 committed by Marge Bot
parent 811f280817
commit 10a2787a71

View file

@ -82,20 +82,16 @@ test_case_new (MetaContext *context)
TestCase *test = g_new0 (TestCase, 1);
MetaDisplay *display = meta_context_get_display (context);
if (!meta_is_wayland_compositor ())
if (display->x11_display)
{
meta_context_test_wait_for_x11_display (META_CONTEXT_TEST (context));
on_x11_display_opened (display, test);
}
else
{
if (display->x11_display)
on_x11_display_opened (display, test);
else
test->x11_display_opened_handler_id =
g_signal_connect (meta_get_display (), "x11-display-opened",
G_CALLBACK (on_x11_display_opened),
test);
test->x11_display_opened_handler_id =
g_signal_connect (meta_get_display (), "x11-display-opened",
G_CALLBACK (on_x11_display_opened),
test);
}
test->context = context;