diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-02-21 10:31:41 +0100 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-02-26 14:42:15 +1000 |
commit | 3adaf4623845dce54129b6474f4f8f2966f9bc47 (patch) | |
tree | bda6f1f3cd151f94b7f03492f03f460c9c681864 /src/synapticsstr.h | |
parent | effeee86c1c286cd09ab750efc4932790dd560dd (diff) |
Don't report motion inside soft-button areas
Unless the motion has started outside the soft-button area.
Note that we must start reporting motions regardless of whether we think we're
in the button area or not as soon as we've switched to using cumulative
coordinates, since then the coordinates are no longer absolute.
This fixes the reporting of unintended motion just before a click in a soft
button area which sometimes causes mis-clicks.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/synapticsstr.h')
-rw-r--r-- | src/synapticsstr.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/synapticsstr.h b/src/synapticsstr.h index 30b1207..2c4e727 100644 --- a/src/synapticsstr.h +++ b/src/synapticsstr.h @@ -249,6 +249,7 @@ struct _SynapticsPrivateRec { Bool prev_up; /* Previous up button value, for double click emulation */ enum FingerState finger_state; /* previous finger state */ CARD32 last_motion_millis; /* time of the last motion */ + Bool inside_button_area; /* Inside button area (ignore motion) */ enum TapState tap_state; /* State of tap processing */ int tap_max_fingers; /* Max number of fingers seen since entering start state */ |