2 drivers/input/evdev.c | 10 +++++++---
3 1 file changed, 7 insertions(+), 3 deletions(-)
5 Index: linux-3.1/drivers/input/evdev.c
6 ===================================================================
7 --- linux-3.1.orig/drivers/input/evdev.c 2011-10-30 00:48:28.025057860 +0200
8 +++ linux-3.1/drivers/input/evdev.c 2011-10-30 00:48:55.309039009 +0200
9 @@ -92,7 +92,7 @@ static void evdev_event(struct input_han
10 unsigned int type, unsigned int code, int value)
12 struct evdev *evdev = handle->private;
13 - struct evdev_client *client;
14 + struct evdev_client *client, *c;
15 struct input_event event;
17 do_gettimeofday(&event.time);
18 @@ -103,9 +103,13 @@ static void evdev_event(struct input_han
21 client = rcu_dereference(evdev->grab);
24 evdev_pass_event(client, &event);
26 + /* Also pass events to clients that did not grab the device. */
27 + list_for_each_entry_rcu(c, &evdev->client_list, node)
29 + evdev_pass_event(c, &event);
31 list_for_each_entry_rcu(client, &evdev->client_list, node)
32 evdev_pass_event(client, &event);