Xi: don't send core events for slave devices.

This commit is contained in:
Peter Hutterer 2007-10-17 10:41:04 +09:30
parent de70cfdbe6
commit ae9fc10ade

View File

@ -124,7 +124,7 @@ ProcessOtherEvent(xEventPtr xE, DeviceIntPtr device, int count)
int coretype = 0;
coretype = XItoCoreType(xE->u.u.type);
if (device->coreEvents && coretype)
if (device->isMaster && device->coreEvents && coretype)
sendCore = TRUE;
CheckMotion(xE, device);