Xi: only activate the device grab if we don't already have one
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 21 Dec 2011 04:45:27 +0000 (14:45 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 21 Dec 2011 05:20:38 +0000 (15:20 +1000)
commit2bb282cd45cb8149b39d72397ef5bbcfebca11d2
treeeea080f5729afd28f129c1e8d68f65269c5e1106
parent475ef5cc8339fac3696fe654ef683f92f0b0cc2c
Xi: only activate the device grab if we don't already have one

If the device is already grabbed, don't activate the passive grab, it screws
with our event masks. Just deliver to the grabbing client instead.

Reported-by: Carlos Garnacho <carlosg@gnome.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Chase Douglas <chase.douglas@canonical.com>
Xi/exevents.c