[PATCH synaptics v5 14/18] Disable scrolling when beginning a clickpad press
Peter Hutterer
peter.hutterer at who-t.net
Mon Mar 12 23:37:41 PDT 2012
From: Chase Douglas <chase.douglas at canonical.com>
There really isn't a point to scrolling while a clickpad is pressed. In
particular, the clickpad button areas and the horizontal edge scrolling
areas overlap, so horizontal edge scrolling must be disabled. Also,
performing two finger scrolling while a third finger presses the button
would require us to inhibit touch events until four touches are present.
That is enough reason to disable two finger scrolling as well.
Signed-off-by: Chase Douglas <chase.douglas at canonical.com>
Reviewed-by: Peter Hutterer <peter.hutterer at who-t.net>
---
src/synaptics.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/synaptics.c b/src/synaptics.c
index 7a6d55f..d422f0f 100644
--- a/src/synaptics.c
+++ b/src/synaptics.c
@@ -1877,6 +1877,12 @@ HandleTapProcessing(SynapticsPrivate *priv, struct SynapticsHwState *hw,
}
break;
case TS_CLICKPAD_MOVE:
+ /* Disable scrolling once a button is pressed on a clickpad */
+ priv->vert_scroll_edge_on = FALSE;
+ priv->horiz_scroll_edge_on = FALSE;
+ priv->vert_scroll_twofinger_on = FALSE;
+ priv->horiz_scroll_twofinger_on = FALSE;
+
/* Assume one touch is only for holding the clickpad button down */
if (hw->numFingers > 1)
hw->numFingers--;
--
1.7.7.6
More information about the xorg-devel
mailing list