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

Last change on this file since 25746 was 25746, checked in by mb, 6 years ago

omap24xx: Add 2.6.38 files

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

    ---
     drivers/input/evdev.c |   10 +++++++---
     1 file changed, 7 insertions(+), 3 deletions(-)
    
    old new  
    7878                        unsigned int type, unsigned int code, int value) 
    7979{ 
    8080        struct evdev *evdev = handle->private; 
    81         struct evdev_client *client; 
     81        struct evdev_client *client, *c; 
    8282        struct input_event event; 
    8383 
    8484        do_gettimeofday(&event.time); 
     
    8989        rcu_read_lock(); 
    9090 
    9191        client = rcu_dereference(evdev->grab); 
    92         if (client) 
     92        if (client) { 
    9393                evdev_pass_event(client, &event); 
    94         else 
     94                /* Also pass events to clients that did not grab the device. */ 
     95                list_for_each_entry_rcu(c, &evdev->client_list, node) 
     96                        if (c != client) 
     97                                evdev_pass_event(c, &event); 
     98        } else 
    9599                list_for_each_entry_rcu(client, &evdev->client_list, node) 
    96100                        evdev_pass_event(client, &event); 
    97101 
Note: See TracBrowser for help on using the repository browser.