diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2012-03-13 11:41:53 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-03-14 08:46:23 +1000 |
commit | 893ac427d0a7952c0f949071296fc2255790465e (patch) | |
tree | 13f0c0757100a662d0f7e595e0bb6d70de0d4c30 /src | |
parent | defc1d008e5674306a7e9b9cb0c750d9787990b7 (diff) |
If the middle button timeout is 0, don't even attempt to emulate.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/synaptics.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/synaptics.c b/src/synaptics.c index 2ddb733..89bc349 100644 --- a/src/synaptics.c +++ b/src/synaptics.c @@ -1447,6 +1447,9 @@ HandleMidButtonEmulation(SynapticsPrivate *priv, struct SynapticsHwState *hw, CA int timeleft; int mid = 0; + if (para->emulate_mid_button_time <= 0) + return mid; + while (!done) { switch (priv->mid_emu_state) { case MBE_LEFT_CLICK: |