source: trunk/target/linux/omap24xx/patches-3.1/710-evdev-events-without-grab.patch @ 28672

Last change on this file since 28672 was 28672, checked in by mb, 5 years ago

omap24xx: Add 3.1 patchset.

File size: 1.1 KB
  • drivers/input/evdev.c

    ---
     drivers/input/evdev.c |   10 +++++++---
     1 file changed, 7 insertions(+), 3 deletions(-)
    
    old new static void evdev_event(struct input_han 
    9292                        unsigned int type, unsigned int code, int value) 
    9393{ 
    9494        struct evdev *evdev = handle->private; 
    95         struct evdev_client *client; 
     95        struct evdev_client *client, *c; 
    9696        struct input_event event; 
    9797 
    9898        do_gettimeofday(&event.time); 
    static void evdev_event(struct input_han 
    103103        rcu_read_lock(); 
    104104 
    105105        client = rcu_dereference(evdev->grab); 
    106         if (client) 
     106        if (client) { 
    107107                evdev_pass_event(client, &event); 
    108         else 
     108                /* Also pass events to clients that did not grab the device. */ 
     109                list_for_each_entry_rcu(c, &evdev->client_list, node) 
     110                        if (c != client) 
     111                                evdev_pass_event(c, &event); 
     112        } else 
    109113                list_for_each_entry_rcu(client, &evdev->client_list, node) 
    110114                        evdev_pass_event(client, &event); 
    111115 
Note: See TracBrowser for help on using the repository browser.