summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenrik Rydberg <rydberg@euromail.se>2008-10-15 23:39:25 +0200
committerChristoph Brill <egore911@egore911.de>2008-10-16 20:57:02 +0200
commite7f6131b56f4785fc57f19e9feefe1e934425742 (patch)
treed7697b72931827219b140b78e4c873b49d576559
parent1d89a1650a140a21e9d5526c50daf56b2673dbe8 (diff)
Provide default button emulation also for touchscreens
The new auto-detection functionality of the driver provides a default way to produce left, right and middle clicks for all trackpads and touchscreens, based on capabilty. However, the current code only provides single click for touchscreens and trackpads without buttons. This patch turns on multi-finger tapping for such devices. Signed-off-by: Henrik Rydberg <rydberg@euromail.se> Signed-off-by: Peter Hutterer <peter.hutterer@redhat.com> Signed-off by: Christoph Brill <egore911@egore911.de>
-rw-r--r--src/synaptics.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/synaptics.c b/src/synaptics.c
index 68d54a5..c3db2be 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -401,8 +401,8 @@ static void set_default_parameters(LocalDevicePtr local)
/* Enable tap if we don't have a phys left button */
tapButton1 = priv->has_left ? 0 : 1;
- tapButton2 = 0;
- tapButton3 = 0;
+ tapButton2 = priv->has_left ? 0 : 3;
+ tapButton3 = priv->has_left ? 0 : 2;
/* Enable multifinger-click if we don't have right/middle button,
otherwise clickFinger is always button 1. */