[clutter/android-enter-leave: 19/29] android: don't use id=0 as touch sequence
- From: Lionel Landwerlin <llandwerlin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/android-enter-leave: 19/29] android: don't use id=0 as touch sequence
- Date: Wed, 11 Jul 2012 17:08:39 +0000 (UTC)
commit 94366dc536d547c1bb8e1d15c010254e1e7bd33b
Author: Lionel Landwerlin <llandwerlin gmail com>
Date: Sun Jun 17 00:45:50 2012 +0100
android: don't use id=0 as touch sequence
clutter/android/clutter-android-application.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/clutter/android/clutter-android-application.c b/clutter/android/clutter-android-application.c
index 2e85cf3..3bf90c6 100644
--- a/clutter/android/clutter-android-application.c
+++ b/clutter/android/clutter-android-application.c
@@ -399,7 +399,10 @@ translate_motion_event_to_touch_event (ClutterAndroidApplication *application,
event->touch.y = AMotionEvent_getY (a_event, i);
event->touch.device = pointer_device;
event->touch.modifier_state = application->modifier_state;
- event->touch.sequence = (gpointer) current_id;
+ /* TODO: We should be allocating proper structures for
+ sequences, but for now it's ok (that explains the ugly kludge
+ with + 1) */
+ event->touch.sequence = (gpointer) (current_id + 1);
event->any.stage = stage;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]