[Meego-kernel] [PATCH 6/6] cptm1217: need to report sync after finger lifted

Hong Liu hong.liu
Sat Sep 25 02:25:00 PDT 2010


>From 0d8c9caa33a14f3d2a12819b0b1fb641114c9318 Mon Sep 17 00:00:00 2001
From: Hong Liu <hong.liu at intel.com>
Date: Sat, 25 Sep 2010 15:50:39 +0800
Subject: [PATCH 6/6] cptm1217: need to report sync after finger lifted

We have problem with evdev + twm if sync is not reported after button
release event. The button release event is flushed away by following events,
causing misbehaving of twm.

Signed-off-by: Hong Liu <hong.liu at intel.com>
---
 drivers/input/touchscreen/clearpad_tm1217.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/input/touchscreen/clearpad_tm1217.c b/drivers/input/touchscreen/clearpad_tm1217.c
index 2fb19b2..c8b97cb 100644
--- a/drivers/input/touchscreen/clearpad_tm1217.c
+++ b/drivers/input/touchscreen/clearpad_tm1217.c
@@ -267,6 +267,7 @@ static void cp_tm1217_get_data(struct cp_tm1217_device *ts)
 					input_report_key(
 						ts->cp_input_info[i].input,
 						BTN_TOUCH, 0);
+					input_sync(ts->cp_input_info[i].input);
 					ts->cp_input_info[i].touch.button = 0;
 				}
 			}
-- 
1.7.2.3






More information about the Meego-kernel mailing list