diff options
Diffstat (limited to 'Xi/querydp.c')
-rw-r--r-- | Xi/querydp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Xi/querydp.c b/Xi/querydp.c index 04323e42a..c1ba2ee3b 100644 --- a/Xi/querydp.c +++ b/Xi/querydp.c @@ -84,7 +84,7 @@ ProcXQueryDevicePointer(register ClientPtr client) REQUEST_SIZE_MATCH(xQueryDevicePointerReq); pDev = LookupDeviceIntRec(stuff->deviceid); - if (pDev == NULL) { + if (pDev == NULL || pDev->valuator == NULL) { SendErrorToClient(client, IReqCode, X_QueryDevicePointer, stuff->deviceid, BadDevice); return Success; |