[PATCH synaptics 1/4] eventcomm: fix wrong event code for SYN_REPORT

Peter Hutterer peter.hutterer at who-t.net
Mon Mar 10 22:27:42 PDT 2014


This was supposed to emulate a SYN_REPORT event so that the upper layers
process what's in the queue.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 src/eventcomm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/eventcomm.c b/src/eventcomm.c
index fb4181e..82f620d 100644
--- a/src/eventcomm.c
+++ b/src/eventcomm.c
@@ -526,7 +526,7 @@ SynapticsReadEvent(InputInfoPtr pInfo, struct input_event *ev)
                 proto_data->read_flag == LIBEVDEV_READ_FLAG_NORMAL) {
                 proto_data->read_flag = LIBEVDEV_READ_FLAG_SYNC;
                 ev->type = EV_SYN;
-                ev->code = SYN_DROPPED;
+                ev->code = SYN_REPORT;
                 ev->value = 0;
                 ev->time = last_event_time;
             } else if (ev->type == EV_SYN)
-- 
1.8.5.3



More information about the xorg-devel mailing list