Xi: return error values to client from XIWarpPointer.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-09-03 09:44:11 +10:00
parent d481720c57
commit 8939ad2b2a

View File

@ -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;
}