[PATCH xserver 3/3] xinput: Let top-level dispatch generate the error

Adam Jackson ajax at redhat.com
Mon Jun 20 16:57:12 UTC 2016


... instead of calling SendErrorToClient ourselves.

Signed-off-by: Adam Jackson <ajax at redhat.com>
---
 Xi/xiquerypointer.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Xi/xiquerypointer.c b/Xi/xiquerypointer.c
index b9e2958..c5b0ba7 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)
-- 
2.7.4



More information about the xorg-devel mailing list