Input: don't reset sync flag when ignoring event
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 2 Jun 2008 05:02:40 +0000 (01:02 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 30 Jun 2008 13:35:18 +0000 (09:35 -0400)
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/input.c

index 27006fc..cae4811 100644 (file)
@@ -241,7 +241,7 @@ static void input_handle_event(struct input_dev *dev,
                break;
        }
 
-       if (type != EV_SYN)
+       if (disposition != INPUT_IGNORE_EVENT && type != EV_SYN)
                dev->sync = 0;
 
        if ((disposition & INPUT_PASS_TO_DEVICE) && dev->event)