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:
@ -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;
|
||||
|
Reference in New Issue
Block a user