mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-03 20:38:01 +02:00
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>
(cherry picked from commit 6764471901)
This commit is contained in:
parent
11319a9225
commit
a3f11d2f60
1 changed files with 5 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue