Browse Source

Input: don't reset sync flag when ignoring event

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Dmitry Torokhov 17 năm trước cách đây
mục cha
commit
c981228281
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      drivers/input/input.c

+ 1 - 1
drivers/input/input.c

@@ -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)