diff options
author | Hans de Goede <hdegoede@redhat.com> | 2014-02-21 10:31:42 +0100 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2014-02-26 14:42:15 +1000 |
commit | 71652fe1f0800b081ba5602e9edda22a8d8d628e (patch) | |
tree | 790c09489b0f214ac4f8e0f0ad5461971face1c2 /src/synapticsstr.h | |
parent | 3adaf4623845dce54129b6474f4f8f2966f9bc47 (diff) |
Ignore motion the first X ms after a clickpad click
This fixes my #1 anoyance with clickpads, where 2 out of 3 clicks turn into
a click + drag unless I hold my finger really really still.
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Replaced property with a hardcoded 100ms. This is not something that we should
expose as property, we should find a delay that works best and live with it.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/synapticsstr.h')
-rw-r--r-- | src/synapticsstr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/synapticsstr.h b/src/synapticsstr.h index 2c4e727..72140c3 100644 --- a/src/synapticsstr.h +++ b/src/synapticsstr.h @@ -160,6 +160,7 @@ typedef struct _SynapticsParameters { int tap_time_2; /* max. tapping time for double taps */ int click_time; /* The duration of a single click */ Bool clickpad; /* Device is a has integrated buttons */ + int clickpad_ignore_motion_time; /* Ignore motion for X ms after a click */ int emulate_mid_button_time; /* Max time between left and right button presses to emulate a middle button press. */ int emulate_twofinger_z; /* pressure threshold to emulate two finger touch (for Alps) */ @@ -250,6 +251,7 @@ struct _SynapticsPrivateRec { 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) */ + int clickpad_click_millis; /* Time of last clickpad click */ enum TapState tap_state; /* State of tap processing */ int tap_max_fingers; /* Max number of fingers seen since entering start state */ |