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-04-30 12:53:59 +1000 |
commit | 6d6bfcbf8763d967b8f3805cfe035324aba53e77 (patch) | |
tree | cdbaabed340d4ec0a9581c42bf96a7210524861e /src/synapticsstr.h | |
parent | f712eb7c41436c3f84a0d244be879c5c118788c5 (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>
(cherry picked from commit 3adaf4623845dce54129b6474f4f8f2966f9bc47)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Conflicts:
src/synaptics.c
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 245003f..aa4b46b 100644 --- a/src/synapticsstr.h +++ b/src/synapticsstr.h @@ -247,6 +247,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 */ |