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>
This commit is contained in:
parent
e8db10a033
commit
075a473e53
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user