Commit 67644719 authored by Peter Hutterer's avatar Peter Hutterer

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

X.Org Bug 55738 <>
Signed-off-by: Peter Hutterer's avatarPeter Hutterer <>
Tested-by: default avatarThomas Jaeger <>
Reviewed-by: Keith Packard's avatarKeith Packard <>
parent 3018f9c1
......@@ -1862,6 +1862,11 @@ DeliverTouchEndEvent(DeviceIntPtr dev, TouchPointInfoPtr ti, InternalEvent *ev,
goto out;
if (listener->state == LISTENER_AWAITING_BEGIN) {
listener->state = LISTENER_HAS_END;
goto out;
/* Event in response to reject */
if (ev->device_event.flags & TOUCH_REJECT) {
if (listener->state != LISTENER_HAS_END)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment