mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-02 02:37:59 +02:00
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
1 changed files with 3 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue