Implement touch early accept
This doesn't really implement early accept as it should. Ideally, the server should send end events to all subsequent touch clients as soon as an early accept comes in. However, this implementation is still protocol compliant. We can always improve it later. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
committed by
Peter Hutterer
parent
b0c54856df
commit
6241b5e4fd
@@ -1022,12 +1022,11 @@ TouchAcceptReject(ClientPtr client, DeviceIntPtr dev, int mode,
|
||||
if (i > 0)
|
||||
{
|
||||
if (mode == XIRejectTouch)
|
||||
{
|
||||
TouchRejected(dev, ti, ti->listeners[i].listener, NULL);
|
||||
return Success;
|
||||
}
|
||||
/* FIXME: Implement early accept */
|
||||
return BadAccess;
|
||||
else
|
||||
ti->listeners[i].state = LISTENER_EARLY_ACCEPT;
|
||||
|
||||
return Success;
|
||||
}
|
||||
|
||||
nev = GetTouchOwnershipEvents(events, dev, ti, mode,
|
||||
|
||||
Reference in New Issue
Block a user