aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/omap24xx/patches-3.3/.svn/text-base/710-evdev-events-without-grab.patch.svn-base
diff options
context:
space:
mode:
authorJames <>2013-03-17 12:16:37 +0000
committerJames <>2013-03-17 12:16:37 +0000
commit27b76ab0671089c47506615a796a261e993896a7 (patch)
tree61213d67e7fa87b20356b23798558e2c4212c42f /target/linux/omap24xx/patches-3.3/.svn/text-base/710-evdev-events-without-grab.patch.svn-base
downloadtrunk-36060-master.tar.gz
trunk-36060-master.tar.bz2
trunk-36060-master.zip
Diffstat (limited to 'target/linux/omap24xx/patches-3.3/.svn/text-base/710-evdev-events-without-grab.patch.svn-base')
-rw-r--r--target/linux/omap24xx/patches-3.3/.svn/text-base/710-evdev-events-without-grab.patch.svn-base31
1 files changed, 31 insertions, 0 deletions
diff --git a/target/linux/omap24xx/patches-3.3/.svn/text-base/710-evdev-events-without-grab.patch.svn-base b/target/linux/omap24xx/patches-3.3/.svn/text-base/710-evdev-events-without-grab.patch.svn-base
new file mode 100644
index 0000000..b463759
--- /dev/null
+++ b/target/linux/omap24xx/patches-3.3/.svn/text-base/710-evdev-events-without-grab.patch.svn-base
@@ -0,0 +1,31 @@
+---
+ drivers/input/evdev.c | 10 +++++++---
+ 1 file changed, 7 insertions(+), 3 deletions(-)
+
+--- a/drivers/input/evdev.c
++++ b/drivers/input/evdev.c
+@@ -92,7 +92,7 @@ static void evdev_event(struct input_han
+ unsigned int type, unsigned int code, int value)
+ {
+ struct evdev *evdev = handle->private;
+- struct evdev_client *client;
++ struct evdev_client *client, *c;
+ struct input_event event;
+
+ do_gettimeofday(&event.time);
+@@ -103,9 +103,13 @@ static void evdev_event(struct input_han
+ rcu_read_lock();
+
+ client = rcu_dereference(evdev->grab);
+- if (client)
++ if (client) {
+ evdev_pass_event(client, &event);
+- else
++ /* Also pass events to clients that did not grab the device. */
++ list_for_each_entry_rcu(c, &evdev->client_list, node)
++ if (c != client)
++ evdev_pass_event(c, &event);
++ } else
+ list_for_each_entry_rcu(client, &evdev->client_list, node)
+ evdev_pass_event(client, &event);
+