mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
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:
parent
811f280817
commit
10a2787a71
@ -82,20 +82,16 @@ test_case_new (MetaContext *context)
|
|||||||
TestCase *test = g_new0 (TestCase, 1);
|
TestCase *test = g_new0 (TestCase, 1);
|
||||||
MetaDisplay *display = meta_context_get_display (context);
|
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);
|
on_x11_display_opened (display, test);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (display->x11_display)
|
test->x11_display_opened_handler_id =
|
||||||
on_x11_display_opened (display, test);
|
g_signal_connect (meta_get_display (), "x11-display-opened",
|
||||||
else
|
G_CALLBACK (on_x11_display_opened),
|
||||||
test->x11_display_opened_handler_id =
|
test);
|
||||||
g_signal_connect (meta_get_display (), "x11-display-opened",
|
|
||||||
G_CALLBACK (on_x11_display_opened),
|
|
||||||
test);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
test->context = context;
|
test->context = context;
|
||||||
|
Loading…
Reference in New Issue
Block a user