sysupgrade works on the wp54
[openwrt.git] / target / linux / omap24xx / patches-2.6.38 / 710-evdev-events-without-grab.patch
1 ---
2 drivers/input/evdev.c | 10 +++++++---
3 1 file changed, 7 insertions(+), 3 deletions(-)
4
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
9 @@ -78,7 +78,7 @@
10 unsigned int type, unsigned int code, int value)
11 {
12 struct evdev *evdev = handle->private;
13 - struct evdev_client *client;
14 + struct evdev_client *client, *c;
15 struct input_event event;
16
17 do_gettimeofday(&event.time);
18 @@ -89,9 +89,13 @@
19 rcu_read_lock();
20
21 client = rcu_dereference(evdev->grab);
22 - if (client)
23 + if (client) {
24 evdev_pass_event(client, &event);
25 - else
26 + /* Also pass events to clients that did not grab the device. */
27 + list_for_each_entry_rcu(c, &evdev->client_list, node)
28 + if (c != client)
29 + evdev_pass_event(c, &event);
30 + } else
31 list_for_each_entry_rcu(client, &evdev->client_list, node)
32 evdev_pass_event(client, &event);
33
This page took 0.041019 seconds and 5 git commands to generate.