xinput: Let top-level dispatch generate the error

... instead of calling SendErrorToClient ourselves.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Adam Jackson 2016-06-20 12:57:12 -04:00
parent 2f981c06a5
commit 5c69cb604a
1 changed files with 2 additions and 2 deletions

View File

@ -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)