summaryrefslogtreecommitdiff
path: root/src/synaptics.c
diff options
context:
space:
mode:
authorChase Douglas <chase.douglas@canonical.com>2012-06-08 13:53:38 -0700
committerPeter Hutterer <peter.hutterer@who-t.net>2012-06-12 14:42:34 +1000
commit0e222876d7da7acbaaf955c2e7b7efdf3549bde9 (patch)
tree27e6ae2cb525083cbf31261fd15ccdc352fd6eb4 /src/synaptics.c
parent4fa880d2b1e1805e90827af5bbb483e268ac68a3 (diff)
Turn down the default sensitivity for unibody MacBook touchpads
The touchpads are too sensitive by default. A touch is activated when a finger hovers a millimeter off the device. This change turns down the default sensitivity so that accidental touchpad interactions are lessened and pointer interaction accuracy is increased. Signed-off-by: Chase Douglas <chase.douglas@canonical.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/synaptics.c')
-rw-r--r--src/synaptics.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/synaptics.c b/src/synaptics.c
index 68d35e8..2144684 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -319,17 +319,23 @@ static void
calculate_tap_hysteresis(SynapticsPrivate * priv, int range,
int *fingerLow, int *fingerHigh)
{
- if (priv->model == MODEL_ELANTECH) {
+ switch (priv->model) {
+ case MODEL_ELANTECH:
/* All Elantech touchpads don't need the Z filtering to get the
* number of fingers correctly. See Documentation/elantech.txt
* in the kernel.
*/
*fingerLow = priv->minp + 1;
*fingerHigh = priv->minp + 1;
- }
- else {
+ break;
+ case MODEL_UNIBODY_MACBOOK:
+ *fingerLow = 70;
+ *fingerHigh = 75;
+ break;
+ default:
*fingerLow = priv->minp + range * (25.0 / 256);
*fingerHigh = priv->minp + range * (30.0 / 256);
+ break;
}
}