Skip to content

Commit

Permalink
Xi: return error values to client from XIWarpPointer.
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Hutterer <[email protected]>
  • Loading branch information
whot committed Sep 2, 2009
1 parent d481720 commit 8939ad2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Xi/xiwarppointer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand All @@ -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;
}

Expand Down

0 comments on commit 8939ad2

Please sign in to comment.