From f198522064501726d76bef4e11c02cfc778bb0c5 Mon Sep 17 00:00:00 2001 From: Chase Douglas Date: Thu, 9 Feb 2012 11:18:25 -0800 Subject: Calculate touch data for semi-mt devices, but don't send touch events Previously, all touch data from semi-mt devices was ignored because the X server doesn't support them. However, the touch data must be used for proper clickpad handling. Instead of ignoring semi-mt device touch events, mark the device as being semi-mt and allow initialization of the touch state. The touches will then be used in calculating the cumulative_d{x,y} values that are needed for clickpad support. When handling the touch data for X event processing, simply skip over reporting the touches. Signed-off-by: Chase Douglas Reviewed-by: Peter Hutterer --- src/synaptics.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/synaptics.c') diff --git a/src/synaptics.c b/src/synaptics.c index d422f0f..2770bd8 100644 --- a/src/synaptics.c +++ b/src/synaptics.c @@ -2788,6 +2788,9 @@ HandleTouches(InputInfoPtr pInfo, struct SynapticsHwState *hw) new_active_touches--; } + if (priv->has_semi_mt) + goto out; + if (priv->num_active_touches < min_touches && new_active_touches < min_touches) { -- cgit v1.2.3