Xi: return the bad device ID if a passive grab fails with BadDevice.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
315aa8444b
commit
2a49ffa3c9
|
@ -99,7 +99,10 @@ ProcXIPassiveGrabDevice(ClientPtr client)
|
|||
{
|
||||
ret = dixLookupDevice(&dev, stuff->deviceid, client, DixGrabAccess);
|
||||
if (ret != Success)
|
||||
{
|
||||
client->errorValue = stuff->deviceid;
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
if (stuff->grab_type != XIGrabtypeButton &&
|
||||
|
|
Loading…
Reference in New Issue
Block a user