[PATCH xf86-input-synaptics v2 12/13] Filter touch events if tap actions are enabled

Chase Douglas chase.douglas at canonical.com
Thu Feb 9 18:24:56 PST 2012


Signed-off-by: Chase Douglas <chase.douglas at canonical.com>
---
 src/synaptics.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/synaptics.c b/src/synaptics.c
index 412a4cf..4761eca 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -2598,9 +2598,9 @@ HandleTouches(InputInfoPtr pInfo, struct SynapticsHwState *hw)
     Bool restart_touches = FALSE;
     int i;
 
-    if (para->click_action[F3_CLICK1])
+    if (para->click_action[F3_CLICK1] || para.tap_action[F3_TAP])
         min_touches = 4;
-    else if (para->click_action[F2_CLICK1])
+    else if (para->click_action[F2_CLICK1] || para.tap_action[F2_TAP])
         min_touches = 3;
 
     /* Count new number of active touches */
-- 
1.7.8.3



More information about the xorg-devel mailing list