[PATCH synaptics v5 01/18] If the middle button timeout is 0, don't even attempt to emulate.

Peter Hutterer peter.hutterer at who-t.net
Mon Mar 12 23:37:28 PDT 2012


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 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:
-- 
1.7.7.6



More information about the xorg-devel mailing list