summaryrefslogtreecommitdiff
path: root/Xi
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2009-09-03 09:44:11 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-09-03 09:44:20 +1000
commit8939ad2b2aa0385f072d3e1169eaf99289ed737a (patch)
tree4befbe91f435846ea37c2eec111f018ed9440042 /Xi
parentd481720c57f558c47273bf89854fc69254319772 (diff)
Xi: return error values to client from XIWarpPointer.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'Xi')
-rw-r--r--Xi/xiwarppointer.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Xi/xiwarppointer.c b/Xi/xiwarppointer.c
index f659269bb..88ba9fa66 100644
--- a/Xi/xiwarppointer.c
+++ b/Xi/xiwarppointer.c
@@ -92,13 +92,17 @@ ProcXIWarpPointer(ClientPtr client)
rc = dixLookupDevice(&pDev, stuff->deviceid, client, DixWriteAccess);
if (rc != Success)
+ {
+ client->errorValue = stuff->deviceid;
return rc;
+ }
if (stuff->dst_win != None)
{
rc = dixLookupWindow(&dest, stuff->dst_win, client, DixGetAttrAccess);
if (rc != Success)
{
+ client->errorValue = stuff->dst_win;
return rc;
}
}
@@ -120,6 +124,7 @@ ProcXIWarpPointer(ClientPtr client)
rc = dixLookupWindow(&src, stuff->src_win, client, DixGetAttrAccess);
if (rc != Success)
{
+ client->errorValue = stuff->src_win;
return rc;
}