2 drivers/input/evdev.c | 10 +++++++---
3 1 file changed, 7 insertions(+), 3 deletions(-)
5 Index: linux-2.6.38-rc6/drivers/input/evdev.c
6 ===================================================================
7 --- linux-2.6.38-rc6.orig/drivers/input/evdev.c 2011-02-22 02:25:52.000000000 +0100
8 +++ linux-2.6.38-rc6/drivers/input/evdev.c 2011-02-24 00:23:52.155643164 +0100
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);
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);