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

Chase Douglas chase.douglas at canonical.com
Thu Feb 9 18:53:03 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 e2e23cb..4a3b46f 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