[PATCH v2 6/7] Implement early touch reject
Chase Douglas
chase.douglas at canonical.com
Fri Feb 3 16:19:10 PST 2012
Signed-off-by: Chase Douglas <chase.douglas at canonical.com>
---
Changes since v1:
* Use new TouchRejected function
dix/touch.c | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/dix/touch.c b/dix/touch.c
index 7daf81b..f55bb8c 100644
--- a/dix/touch.c
+++ b/dix/touch.c
@@ -1019,9 +1019,16 @@ TouchAcceptReject(ClientPtr client, DeviceIntPtr dev, int mode,
if (i == ti->num_listeners)
return BadAccess;
- /* FIXME: Implement early accept/reject */
if (i > 0)
+ {
+ if (mode == XIRejectTouch)
+ {
+ TouchRejected(dev, ti, ti->listeners[i].listener, NULL);
+ return Success;
+ }
+ /* FIXME: Implement early accept */
return BadAccess;
+ }
nev = GetTouchOwnershipEvents(events, dev, ti, mode,
ti->listeners[0].listener, 0);
--
1.7.8.3
More information about the xorg-devel
mailing list