Xi: assign correct grab_mode/other_device_mode in XI2 passive grabs
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 13 Dec 2011 14:41:23 +0000 (15:41 +0100)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 21 Dec 2011 04:16:36 +0000 (14:16 +1000)
commit5b169cb695bd450d7f64e3800f00c9237ee67f96
tree726a4dfc9125827899b5c3bebf0df0b431b13470
parent4469430b109fa2da7ba3d2fadf66eca78b7156a0
Xi: assign correct grab_mode/other_device_mode in XI2 passive grabs

CreateGrab() expects the keyboard mode to be stored in grab_mode, and the
pointer mode in other_device_mode, so respect this in passive XI2 grabs,
and switch modes if needed.

Signed-off-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/xipassivegrab.c