summaryrefslogtreecommitdiff
path: root/src/synaptics.c
diff options
context:
space:
mode:
authorChase Douglas <chase.douglas@canonical.com>2012-02-04 14:21:51 -0800
committerChase Douglas <chase.douglas@canonical.com>2012-03-02 09:35:50 -0800
commit86f50e0b5b3967157f1f700a9febb09080f0575a (patch)
tree01c7865879be39aa0c31bb7ac0fe81fa625a76f6 /src/synaptics.c
parent127b189499be24c986915ef29fd4d3288e6a7880 (diff)
Check for clickpad property
However, only enable it by default if a right button is physically present. Clickpad support conflicts with click action support, so the user would be left without right button support if there is no physical right button. Signed-off-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'src/synaptics.c')
-rw-r--r--src/synaptics.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/synaptics.c b/src/synaptics.c
index 4f6b65f..64e87da 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -488,6 +488,11 @@ static void set_default_parameters(InputInfoPtr pInfo)
palmMinWidth = priv->minw + range * (10.0/16);
emulateTwoFingerMinW = priv->minw + range * (7.0/16);
+ /* Clickpad conflicts with click actions, disable by default unless there
+ * is a physical right button. */
+ if (pars->clickpad && !priv->has_right)
+ pars->clickpad = 0;
+
/* Enable tap if we don't have a phys left button */
tapButton1 = priv->has_left ? 0 : 1;
tapButton2 = priv->has_left ? 0 : 3;
@@ -534,7 +539,7 @@ static void set_default_parameters(InputInfoPtr pInfo)
pars->tap_move = xf86SetIntOption(opts, "MaxTapMove", tapMove);
pars->tap_time_2 = xf86SetIntOption(opts, "MaxDoubleTapTime", 180);
pars->click_time = xf86SetIntOption(opts, "ClickTime", 100);
- pars->clickpad = xf86SetIntOption(opts, "ClickPad", FALSE);
+ pars->clickpad = xf86SetIntOption(opts, "ClickPad", pars->clickpad); /* Probed */
pars->fast_taps = xf86SetBoolOption(opts, "FastTaps", FALSE);
pars->emulate_mid_button_time = xf86SetIntOption(opts, "EmulateMidButtonTime", 75);
pars->emulate_twofinger_z = xf86SetIntOption(opts, "EmulateTwoFingerMinZ", emulateTwoFingerMinZ);