mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-06 14:20:12 +01:00
Don't deactivate implicit pointer grab on fake touch end event
Fake touch end events are generated by touch acceptance and rejection. These should not cause implicit pointer grabs to be deactivated. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
fc518cd9f5
commit
ef64b5ee97
1 changed files with 1 additions and 0 deletions
|
|
@ -1482,6 +1482,7 @@ DeliverTouchEmulatedEvent(DeviceIntPtr dev, TouchPointInfoPtr ti,
|
|||
TouchListenerAcceptReject(dev, ti, 0, XIAcceptTouch);
|
||||
|
||||
if (ev->any.type == ET_TouchEnd &&
|
||||
!(ev->device_event.flags & TOUCH_CLIENT_ID) &&
|
||||
!dev->button->buttonsDown &&
|
||||
dev->deviceGrab.fromPassiveGrab && GrabIsPointerGrab(grab)) {
|
||||
(*dev->deviceGrab.DeactivateGrab) (dev);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue