mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-18 06:00:35 +01:00
End a pointer emulated touch event only on a "real" end event
Fake end events are generated by touch acceptance or rejection. These
should not end the touch point.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit fc518cd9f5)
This commit is contained in:
parent
fac2c4a5dc
commit
ea3afab228
1 changed files with 2 additions and 1 deletions
|
|
@ -1856,7 +1856,8 @@ DeliverTouchEndEvent(DeviceIntPtr dev, TouchPointInfoPtr ti, InternalEvent *ev,
|
|||
if (ti->num_listeners > 1) {
|
||||
ev->any.type = ET_TouchUpdate;
|
||||
ev->device_event.flags |= TOUCH_PENDING_END;
|
||||
ti->pending_finish = TRUE;
|
||||
if (!(ev->device_event.flags & TOUCH_CLIENT_ID))
|
||||
ti->pending_finish = TRUE;
|
||||
}
|
||||
|
||||
goto out;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue