mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-04 23:28:05 +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>
(cherry picked from commit 2a49ffa3c9)
This commit is contained in:
parent
d6328c6bfe
commit
ea55d0d504
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