From f8687f9430a5270818c945d4145abbd7f7693f3e Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Thu, 23 Apr 2015 20:18:25 +0100 Subject: [PATCH] tests: Remove calls to clutter_x11_enable_xinput() The function is deprecated and useless: support for XInput is always enabled, if the extension is available. --- tests/interactive/test-devices.c | 5 ----- tests/interactive/test-events.c | 4 ---- tests/interactive/test-rotate-zoom.c | 4 ---- tests/interactive/test-touch-events.c | 4 ---- 4 files changed, 17 deletions(-) diff --git a/tests/interactive/test-devices.c b/tests/interactive/test-devices.c index d2c88f4d0..f0dd9fa55 100644 --- a/tests/interactive/test-devices.c +++ b/tests/interactive/test-devices.c @@ -213,11 +213,6 @@ 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; diff --git a/tests/interactive/test-events.c b/tests/interactive/test-events.c index de90fb0c6..09424de45 100644 --- a/tests/interactive/test-events.c +++ b/tests/interactive/test-events.c @@ -390,10 +390,6 @@ test_events_main (int argc, char *argv[]) { ClutterActor *stage, *actor, *focus_box, *group; -#ifdef CLUTTER_WINDOWING_X11 - clutter_x11_enable_xinput (); -#endif - if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS) return 1; diff --git a/tests/interactive/test-rotate-zoom.c b/tests/interactive/test-rotate-zoom.c index 0e9cc0a39..2c25d7f7f 100644 --- a/tests/interactive/test-rotate-zoom.c +++ b/tests/interactive/test-rotate-zoom.c @@ -59,10 +59,6 @@ test_rotate_zoom_main (int argc, char *argv[]) ClutterActor *stage, *actor; gfloat width, height; -#ifdef CLUTTER_WINDOWING_X11 - clutter_x11_enable_xinput (); -#endif - /* initialize Clutter */ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS) return EXIT_FAILURE; diff --git a/tests/interactive/test-touch-events.c b/tests/interactive/test-touch-events.c index f81545062..184924a2a 100644 --- a/tests/interactive/test-touch-events.c +++ b/tests/interactive/test-touch-events.c @@ -132,10 +132,6 @@ test_touch_events_main (int argc, char *argv[]) ClutterActor *stage, *canvas; int i; -#ifdef CLUTTER_WINDOWING_X11 - clutter_x11_enable_xinput (); -#endif - /* initialize Clutter */ if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS) return EXIT_FAILURE;