Xi: don't deliver TouchEnd to a client waiting for TouchBegin (#55738)
If a client is still waiting for the TouchBegin, don't deliver a TouchEnd event. X.Org Bug 55738 <http://bugs.freedesktop.org/show_bug.cgi?id=55738> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Tested-by: Thomas Jaeger <thjaeger@gmail.com> Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
3018f9c1e5
commit
6764471901
|
@ -1862,6 +1862,11 @@ DeliverTouchEndEvent(DeviceIntPtr dev, TouchPointInfoPtr ti, InternalEvent *ev,
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (listener->state == LISTENER_AWAITING_BEGIN) {
|
||||||
|
listener->state = LISTENER_HAS_END;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
/* Event in response to reject */
|
/* Event in response to reject */
|
||||||
if (ev->device_event.flags & TOUCH_REJECT) {
|
if (ev->device_event.flags & TOUCH_REJECT) {
|
||||||
if (listener->state != LISTENER_HAS_END)
|
if (listener->state != LISTENER_HAS_END)
|
||||||
|
|
Loading…
Reference in New Issue