[PATCH xf86-input-synaptics v2 09/12] Inhibit more touch events on clickpads when a button is pressed

Chase Douglas chase.douglas at canonical.com
Fri Feb 10 12:00:48 PST 2012


One of the touches is assumed to be solely for pressing the clickpad
button.

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

diff --git a/src/synaptics.c b/src/synaptics.c
index 503dc57..f48cdd9 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -2650,6 +2650,10 @@ HandleTouches(InputInfoPtr pInfo, struct SynapticsHwState *hw)
              para->scroll_twofinger_vert || para->scroll_twofinger_horiz)
         min_touches = 3;
 
+    /* Assume one of the touches is used to press clickpad button */
+    if (para->clickpad && (hw->left || hw->right || hw->middle))
+        min_touches++;
+
     /* Count new number of active touches */
     for (i = 0; i < hw->num_mt_mask; i++)
     {
-- 
1.7.8.3



More information about the xorg-devel mailing list