From 04ca3d1af3544adfe80cc52f75c51ac2bda029fe Mon Sep 17 00:00:00 2001 From: Emanuele Aina <emanuele.aina@collabora.com> Date: Mon, 1 Oct 2012 10:57:07 +0200 Subject: [PATCH] examples/pan-action: Enable the xinput backend to test touch events --- examples/pan-action.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/pan-action.c b/examples/pan-action.c index a8875824a..22a5451a3 100644 --- a/examples/pan-action.c +++ b/examples/pan-action.c @@ -1,6 +1,9 @@ #include <stdlib.h> #include <gdk-pixbuf/gdk-pixbuf.h> #include <clutter/clutter.h> +#ifdef CLUTTER_WINDOWING_X11 +#include <clutter/x11/clutter-x11.h> +#endif static ClutterActor * create_content_actor (void) @@ -115,6 +118,10 @@ main (int argc, char *argv[]) { ClutterActor *stage, *scroll, *info; +#ifdef CLUTTER_WINDOWING_X11 + clutter_x11_enable_xinput (); +#endif + if (clutter_init (&argc, &argv) != CLUTTER_INIT_SUCCESS) return EXIT_FAILURE;