mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
conform: Put xinput enabling under guards
Calling clutter_x11_* API should be done only under the platform specific guards we provide with Clutter. https://bugzilla.gnome.org/show_bug.cgi?id=678423
This commit is contained in:
parent
5eb3fbf3cf
commit
47f8be4d4b
@ -31,7 +31,7 @@ test_conform_simple_fixture_setup (TestConformSimpleFixture *fixture,
|
||||
"$ make test-report");
|
||||
counter++;
|
||||
|
||||
#ifdef HAVE_CLUTTER_GLX
|
||||
#ifdef CLUTTER_WINDOWING_X11
|
||||
{
|
||||
/* on X11 we need a display connection to run the test suite */
|
||||
const gchar *display = g_getenv ("DISPLAY");
|
||||
@ -43,9 +43,10 @@ test_conform_simple_fixture_setup (TestConformSimpleFixture *fixture,
|
||||
exit (EXIT_SUCCESS);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
/* enable XInput support */
|
||||
clutter_x11_enable_xinput ();
|
||||
#endif
|
||||
|
||||
g_assert (clutter_init (shared_state->argc_addr, shared_state->argv_addr)
|
||||
== CLUTTER_INIT_SUCCESS);
|
||||
|
Loading…
Reference in New Issue
Block a user