Xi: add missing call for SProcXChangeDeviceCursor

add DeviceEnterNotify and DeviceLeaveNotify
	fix: QueryDevicePointer crashed if called with keyboard device
This commit is contained in:
Peter Hutterer
2007-01-10 14:52:13 +10:30
committed by Peter Hutterer
parent a7ab793293
commit ea82333dc1
6 changed files with 120 additions and 602 deletions

View File

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