diff options
-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: |