mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
Xi: return error values to client from XIWarpPointer.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user