2 drivers/input/evdev.c | 10 +++++++---
3 1 file changed, 7 insertions(+), 3 deletions(-)
5 --- linux-2.6.35.4.orig/drivers/input/evdev.c
6 +++ linux-2.6.35.4/drivers/input/evdev.c
7 @@ -70,7 +70,7 @@ static void evdev_event(struct input_han
8 unsigned int type, unsigned int code, int value)
10 struct evdev *evdev = handle->private;
11 - struct evdev_client *client;
12 + struct evdev_client *client, *c;
13 struct input_event event;
15 do_gettimeofday(&event.time);
16 @@ -81,9 +81,13 @@ static void evdev_event(struct input_han
19 client = rcu_dereference(evdev->grab);
22 evdev_pass_event(client, &event);
24 + /* Also pass events to clients that did not grab the device. */
25 + list_for_each_entry_rcu(c, &evdev->client_list, node)
27 + evdev_pass_event(c, &event);
29 list_for_each_entry_rcu(client, &evdev->client_list, node)
30 evdev_pass_event(client, &event);