Xi: don't call CheckMotion for slave devices.

This essentially disables enter/leave for slave devices, but re-enables them
for master devices. Which is a good thing after all.
This commit is contained in:
Peter Hutterer 2007-11-07 11:42:58 +10:30
parent 15944b8f02
commit a8808ac3d0

View File

@ -127,7 +127,8 @@ ProcessOtherEvent(xEventPtr xE, DeviceIntPtr device, int count)
if (device->isMaster && device->coreEvents && coretype)
sendCore = TRUE;
CheckMotion(xE, device);
if (device->isMaster)
CheckMotion(xE, device);
if (xE->u.u.type != DeviceValuator && xE->u.u.type != GenericEvent) {
DeviceIntPtr mouse = NULL, kbd = NULL;