mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-01 02:08:01 +02:00
Xi: not having an ownership mask does not mean automatic acceptance
If we only have a single touch-grabbing client, setting the client as owner would clean up the touch once the TouchEnd was processed. If the client then calls XIAllowTouches() it will receive a BadValue for the touch ID (since the internal record is already cleaned up). Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
2f1aedcaed
commit
9cc45c18ad
1 changed files with 1 additions and 1 deletions
|
|
@ -1867,7 +1867,7 @@ DeliverTouchBeginEvent(DeviceIntPtr dev, TouchPointInfoPtr ti,
|
|||
if (has_ownershipmask)
|
||||
TouchSendOwnershipEvent(dev, ti, 0, listener->listener);
|
||||
|
||||
if (!has_ownershipmask || listener->type == LISTENER_REGULAR)
|
||||
if (listener->type == LISTENER_REGULAR)
|
||||
state = LISTENER_HAS_ACCEPTED;
|
||||
else
|
||||
state = LISTENER_IS_OWNER;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue