core devices: clear devicePrivates on close

This commit is contained in:
Daniel Stone 2006-08-10 14:00:34 +03:00 committed by Daniel Stone
parent 539d1f3347
commit 9f188416bb

View File

@ -270,6 +270,7 @@ CoreKeyboardProc(DeviceIntPtr pDev, int what)
* ... yeah.
*/
pDev->key->xkbInfo = NULL;
pDev->devPrivates[CoreDevicePrivatesIndex].ptr = NULL;
break;
default:
@ -298,6 +299,10 @@ CorePointerProc(DeviceIntPtr pDev, int what)
pDev->valuator->lasty = pDev->valuator->axisVal[1];
break;
case DEVICE_CLOSE:
pDev->devPrivates[CoreDevicePrivatesIndex].ptr = NULL;
break;
default:
break;
}