summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-08-21 09:44:37 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-08-24 10:07:01 +1000
commit58fd28f6b6bebab7f31c54e696f96d64ebb50f5a (patch)
treeec603e23a1d5c7cc00b0d3075335d8d392ed6622
parentb41dd4328bfb8a0981d299bb60f986a2bc55fd24 (diff)
Xi: return deviceid as error value in XIQueryPointer.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--Xi/xiquerypointer.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Xi/xiquerypointer.c b/Xi/xiquerypointer.c
index da1d101cb..d51d383fe 100644
--- a/Xi/xiquerypointer.c
+++ b/Xi/xiquerypointer.c
@@ -83,7 +83,10 @@ ProcXIQueryPointer(ClientPtr client)
rc = dixLookupDevice(&pDev, stuff->deviceid, client, DixReadAccess);
if (rc != Success)
+ {
+ client->errorValue = stuff->deviceid;
return rc;
+ }
if (pDev->valuator == NULL)
{