diff --git a/tests/interactive/Makefile.am b/tests/interactive/Makefile.am index f384742f8..62c494bf7 100644 --- a/tests/interactive/Makefile.am +++ b/tests/interactive/Makefile.am @@ -59,10 +59,11 @@ UNIT_TESTS = \ test-path-constraint.c \ test-snap-constraint.c \ test-state-script.c \ - test-drop.c + test-drop.c \ + test-devices.c if X11_TESTS -UNIT_TESTS += test-pixmap.c test-devices.c +UNIT_TESTS += test-pixmap.c endif if OS_WIN32 diff --git a/tests/interactive/test-devices.c b/tests/interactive/test-devices.c index 1d252dc8a..547317433 100644 --- a/tests/interactive/test-devices.c +++ b/tests/interactive/test-devices.c @@ -1,7 +1,10 @@ #include #include #include + +#ifdef CLUTTER_WINDOWING_X11 #include +#endif typedef struct { ClutterActor *stage; @@ -218,8 +221,10 @@ test_devices_main (int argc, char **argv) ClutterDeviceManager *manager; const GSList *stage_devices, *l; +#ifdef CLUTTER_WINDOWING_X11 /* force enabling X11 support */ clutter_x11_enable_xinput (); +#endif if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS) return 1;