1
From a1535e63935e6453301e54efbc4c13dc11995b40 Mon Sep 17 00:00:00 2001
2
From: Carlos Garnacho <carlosg@gnome.org>
3
Date: Mon, 5 Sep 2011 17:25:54 +0200
4
Subject: [PATCH 1/6] Xi: ensure replayed touch events have the right devices
7
So update the event device/source to the TouchClientPtr ones
10
1 files changed, 4 insertions(+), 0 deletions(-)
12
diff --git a/Xi/exevents.c b/Xi/exevents.c
13
index 2f1a066..b8b9129 100644
16
@@ -1625,12 +1625,16 @@ ProcessTouchOwnership(DeviceIntPtr dev, TouchPointInfoPtr ti, uint8_t reason,
19
/* Deliver the saved touch begin event. */
20
+ ti->begin_event->device_event.deviceid = tc->device->id;
21
+ ti->begin_event->device_event.sourceid = tc->source->id;
22
ret = DeliverOneTouchEvent(tc, ti, ti->begin_event);
24
/* Deliver all the touch motion events in the ring buffer. */
25
ev = ti->first_history;
26
while (ret && ev != ti->next_history)
28
+ ev->device_event.deviceid = tc->device->id;
29
+ ev->device_event.sourceid = tc->source->id;
30
ret = DeliverOneTouchEvent(tc, ti, ev);
32
if (ev->any.type == ET_TouchEnd)