diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2009-06-03 12:15:32 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-06-03 12:17:54 +1000 |
commit | a1d1dd06f8f91c1d1802f7581a4ba7568b85e69c (patch) | |
tree | c434a9b9d7c52f0d13c03c13601af32392a0f53e /Xi/grabdev.c | |
parent | a371a47205fc58a587e1aecaa4a031184481c228 (diff) |
Xi: fix wrong grabtype from ProcXGrabDevice.
86077f0058ce88ee9b3df5d1ab854eeca43 switched from a boolean to a grabtype
enum. ProcXGrabDevice didn't switch with it. PickPointer during an XI grab
on a slave device would thus return a wrong (or NULL) device and crash the
server.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xi/grabdev.c')
-rw-r--r-- | Xi/grabdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/grabdev.c b/Xi/grabdev.c index 6827fd1b1..adcd7e79f 100644 --- a/Xi/grabdev.c +++ b/Xi/grabdev.c @@ -132,7 +132,7 @@ ProcXGrabDevice(ClientPtr client) rc = GrabDevice(client, dev, stuff->other_devices_mode, stuff->this_device_mode, stuff->grabWindow, stuff->ownerEvents, stuff->time, - &mask, FALSE, None, None, + &mask, GRABTYPE_XI, None, None, &rep.status); if (rc != Success) |