[clutter] examples/pan-action: Enable the xinput backend to test touch events
- From: Emanuele Aina <emaaa src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter] examples/pan-action: Enable the xinput backend to test touch events
- Date: Mon, 26 Nov 2012 12:30:31 +0000 (UTC)
commit 04ca3d1af3544adfe80cc52f75c51ac2bda029fe
Author: Emanuele Aina <emanuele aina collabora com>
Date: Mon Oct 1 10:57:07 2012 +0200
examples/pan-action: Enable the xinput backend to test touch events
examples/pan-action.c | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/examples/pan-action.c b/examples/pan-action.c
index a887582..22a5451 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]