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:
parent
2f981c06a5
commit
5c69cb604a
|
@ -110,8 +110,8 @@ ProcXIQueryPointer(ClientPtr client)
|
||||||
|
|
||||||
rc = dixLookupWindow(&pWin, stuff->win, client, DixGetAttrAccess);
|
rc = dixLookupWindow(&pWin, stuff->win, client, DixGetAttrAccess);
|
||||||
if (rc != Success) {
|
if (rc != Success) {
|
||||||
SendErrorToClient(client, IReqCode, X_XIQueryPointer, stuff->win, rc);
|
client->errorValue = stuff->win;
|
||||||
return Success;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pDev->valuator->motionHintWindow)
|
if (pDev->valuator->motionHintWindow)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user