[PATCH 1/5] Xi: return the bad device ID if a passive grab fails with BadDevice.
Peter Hutterer
peter.hutterer at who-t.net
Thu Apr 14 20:20:56 PDT 2011
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
Xi/xipassivegrab.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/Xi/xipassivegrab.c b/Xi/xipassivegrab.c
index 3319ef9..22f905e 100644
--- a/Xi/xipassivegrab.c
+++ b/Xi/xipassivegrab.c
@@ -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 &&
--
1.7.4.2
More information about the xorg-devel
mailing list