From 8939ad2b2aa0385f072d3e1169eaf99289ed737a Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Thu, 3 Sep 2009 09:44:11 +1000 Subject: [PATCH] Xi: return error values to client from XIWarpPointer. Signed-off-by: Peter Hutterer --- Xi/xiwarppointer.c | 5 +++++ 1 file changed, 5 insertions(+) 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; }