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 23:01:10 +0100 |
commit | 4d66afc7344f46a748a2c068063155b982bfd5cb (patch) | |
tree | fc752c197088e759b0c54e73709c584b96511a11 | |
parent | ac8bf59d55a9f6bbf260ebfd46dc357257d77074 (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++) { |