mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-19 02:10:25 +01:00
Xi: check for HAS_ACCEPTED only for grab listeners
If we have one listener left but it's not a grab, it cannot be in
LISTENER_HAS_ACCEPTED state.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
(cherry picked from commit 2566bdd8bc)
This commit is contained in:
parent
f3d63710d5
commit
ef0fff102d
1 changed files with 1 additions and 1 deletions
|
|
@ -1917,7 +1917,7 @@ DeliverTouchEndEvent(DeviceIntPtr dev, TouchPointInfoPtr ti, InternalEvent *ev,
|
|||
rc = DeliverOneTouchEvent(client, dev, ti, grab, win, ev);
|
||||
|
||||
if ((ti->num_listeners > 1 ||
|
||||
listener->state != LISTENER_HAS_ACCEPTED) &&
|
||||
(ti->num_grabs > 0 && listener->state != LISTENER_HAS_ACCEPTED)) &&
|
||||
(ev->device_event.flags & (TOUCH_ACCEPT | TOUCH_REJECT)) == 0) {
|
||||
ev->any.type = ET_TouchUpdate;
|
||||
ev->device_event.flags |= TOUCH_PENDING_END;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue