diff options
author | Chase Douglas <chase.douglas@canonical.com> | 2012-02-09 17:04:42 -0800 |
---|---|---|
committer | Chase Douglas <chase.douglas@canonical.com> | 2012-02-11 18:53:28 +0100 |
commit | ec357faa968506e1564524e03e30b58385959093 (patch) | |
tree | fd3c3a79d09db950e3936e9e1edcf0a7238edd58 | |
parent | 18f5be1f48fdcfeaf250086d5d7477c3f07619a1 (diff) |
Inhibit more touch events on clickpads when a button is pressed
One of the touches is assumed to be solely for pressing the clickpad
button.
Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
-rw-r--r-- | src/synaptics.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/synaptics.c b/src/synaptics.c index 27089c8..2e12a8f 100644 --- a/src/synaptics.c +++ b/src/synaptics.c @@ -2659,6 +2659,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++) { |