[PATCH xserver] dix: Set XITouchEmulatingPointer on events from the touch sequence emulating pointer events

carlosg at gnome.org carlosg at gnome.org
Mon Jan 2 17:43:40 PST 2012


From: Carlos Garnacho <carlosg at gnome.org>

The internal flag is kept around, merely translated to XITouchEmulatingPointer
when creating the XI2 events that will be delivered to the client.

Signed-off-by: Carlos Garnacho <carlosg at gnome.org>
---
 dix/eventconvert.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dix/eventconvert.c b/dix/eventconvert.c
index 017c871..60dc22f 100644
--- a/dix/eventconvert.c
+++ b/dix/eventconvert.c
@@ -691,6 +691,10 @@ eventToDeviceEvent(DeviceEvent *ev, xEvent **xi)
     else
         xde->flags = ev->flags;
 
+    if (IsTouchEvent((InternalEvent*)ev) &&
+        ev->flags & TOUCH_POINTER_EMULATED)
+        xde->flags |= XITouchEmulatingPointer;
+
     if (ev->key_repeat)
         xde->flags      |= XIKeyRepeat;
 
-- 
1.7.7.4



More information about the xorg-devel mailing list