From 5c69cb604a144bdced7d066eaca574aa44e8cb36 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 20 Jun 2016 12:57:12 -0400 Subject: [PATCH] xinput: Let top-level dispatch generate the error ... instead of calling SendErrorToClient ourselves. Signed-off-by: Adam Jackson Reviewed-by: Daniel Stone --- Xi/xiquerypointer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Xi/xiquerypointer.c b/Xi/xiquerypointer.c index b9e295815..c5b0ba7b6 100644 --- a/Xi/xiquerypointer.c +++ b/Xi/xiquerypointer.c @@ -110,8 +110,8 @@ ProcXIQueryPointer(ClientPtr client) rc = dixLookupWindow(&pWin, stuff->win, client, DixGetAttrAccess); if (rc != Success) { - SendErrorToClient(client, IReqCode, X_XIQueryPointer, stuff->win, rc); - return Success; + client->errorValue = stuff->win; + return rc; } if (pDev->valuator->motionHintWindow)