mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-20 15:20:43 +02:00
Xi: don't deliver emulated motion events for non-emulating touches
The touchpoint knows whether it should be emulating or not and we have a check
for that later. Check for this before we generate the event and try to deliver
it, lest we trigger a bug warning.
https://bugzilla.redhat.com/show_bug.cgi?id=1282252
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit f641ae4122)
This commit is contained in:
parent
da4c6e1aaa
commit
bcb633cae6
1 changed files with 3 additions and 0 deletions
|
|
@ -1379,6 +1379,9 @@ DeliverTouchEmulatedEvent(DeviceIntPtr dev, TouchPointInfoPtr ti,
|
|||
if (!TouchResourceIsOwner(ti, listener->listener))
|
||||
return !Success;
|
||||
|
||||
if (!ti->emulate_pointer)
|
||||
return !Success;
|
||||
|
||||
nevents = TouchConvertToPointerEvent(ev, &motion, &button);
|
||||
BUG_RETURN_VAL(nevents == 0, BadValue);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue