diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2012-01-03 02:43:40 +0100 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-01-06 14:03:04 +1000 |
commit | 075a473e538efb771497b762101694b6c0c45c2b (patch) | |
tree | 63e85d188ec4e5a6fe91b502ef7b12529592ea12 /dix | |
parent | e8db10a033491059ddf2b4777c9fafed14c403e8 (diff) |
dix: Set XITouchEmulatingPointer on events from the touch sequence emulating pointer events
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@gnome.org>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix')
-rw-r--r-- | dix/eventconvert.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dix/eventconvert.c b/dix/eventconvert.c index 017c87190..60dc22fff 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; |