[PATCH synaptics] Stop scrolling if not exactly two fingers on touchpad.

Peter Hutterer peter.hutterer at who-t.net
Sun Feb 20 18:56:42 PST 2011


On Mon, Feb 14, 2011 at 10:08:41PM +0800, Daniel Kurtz wrote:
> X.Org Bug 34257 <http://bugs.freedesktop.org/show_bug.cgi?id=34257>
> 
> Signed-off-by: Daniel Kurtz <djkurtz at google.com>
> ---
>  src/synaptics.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/synaptics.c b/src/synaptics.c
> index 783bd64..6e826f1 100644
> --- a/src/synaptics.c
> +++ b/src/synaptics.c
> @@ -1960,7 +1960,7 @@ HandleScrolling(SynapticsPrivate *priv, struct SynapticsHwState *hw,
>  	    priv->circ_scroll_on = FALSE;
>  	}
>  
> -	if (!finger || hw->numFingers < 2) {
> +	if (!finger || hw->numFingers != 2) {
>  	    if (priv->vert_scroll_twofinger_on) {
>  		DBG(7, "vert two-finger scroll off\n");
>  		priv->vert_scroll_twofinger_on = FALSE;
> -- 
> 1.7.3.1

merged, thanks.

Cheers,
  Peter


More information about the xorg-devel mailing list