From 9a3ec0102f0dda7f2b8e6c8c0ed13f4491e414c2 Mon Sep 17 00:00:00 2001 From: Kyle Fazzari Date: Tue, 18 Sep 2012 18:20:32 -0400 Subject: [PATCH] * Fixed bug #1048816: "Disable tap-to-click doesn't affect mouse button zones" by making sure the specialized taps coming from the mouse zones don't turn into mouse clicks. --- drivers/input/mouse/cypress_ps2.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/input/mouse/cypress_ps2.c b/drivers/input/mouse/cypress_ps2.c index 45afe8f..97f7cf8 100644 --- a/drivers/input/mouse/cypress_ps2.c +++ b/drivers/input/mouse/cypress_ps2.c @@ -693,6 +693,15 @@ static int cypress_parse_packet(const unsigned char packet[], } } + // This is only true if one of the mouse buttons were tapped. + // Make sure it doesn't turn into a click. The regular tap-to- + // click functionality will handle that on its own. If we don't + // do this, disabling tap-to-click won't affect the mouse button + // zones. + if (report_data->tap) { + report_data->left = 0; + } + if (report_data->contact_cnt <= 0) return 0; -- 1.7.9.5