interactive/devices: Build unconditionally
The test-devices interactive test does not rely on the X11 API being present any more, after the introduction of the device manager API.
This commit is contained in:
parent
8249e48802
commit
3b38cee66b
@ -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
|
||||
|
@ -1,7 +1,10 @@
|
||||
#include <stdlib.h>
|
||||
#include <gmodule.h>
|
||||
#include <clutter/clutter.h>
|
||||
|
||||
#ifdef CLUTTER_WINDOWING_X11
|
||||
#include <clutter/x11/clutter-x11.h>
|
||||
#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;
|
||||
|
Loading…
Reference in New Issue
Block a user