Xi: return error values to client from XIWarpPointer.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
d481720c57
commit
8939ad2b2a
|
@ -92,13 +92,17 @@ ProcXIWarpPointer(ClientPtr client)
|
||||||
rc = dixLookupDevice(&pDev, stuff->deviceid, client, DixWriteAccess);
|
rc = dixLookupDevice(&pDev, stuff->deviceid, client, DixWriteAccess);
|
||||||
|
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
|
{
|
||||||
|
client->errorValue = stuff->deviceid;
|
||||||
return rc;
|
return rc;
|
||||||
|
}
|
||||||
|
|
||||||
if (stuff->dst_win != None)
|
if (stuff->dst_win != None)
|
||||||
{
|
{
|
||||||
rc = dixLookupWindow(&dest, stuff->dst_win, client, DixGetAttrAccess);
|
rc = dixLookupWindow(&dest, stuff->dst_win, client, DixGetAttrAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
{
|
{
|
||||||
|
client->errorValue = stuff->dst_win;
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -120,6 +124,7 @@ ProcXIWarpPointer(ClientPtr client)
|
||||||
rc = dixLookupWindow(&src, stuff->src_win, client, DixGetAttrAccess);
|
rc = dixLookupWindow(&src, stuff->src_win, client, DixGetAttrAccess);
|
||||||
if (rc != Success)
|
if (rc != Success)
|
||||||
{
|
{
|
||||||
|
client->errorValue = stuff->src_win;
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue