Reset lastSlave when disabling devices

This commit is contained in:
Keith Packard 2008-07-29 11:58:16 -07:00
parent 2386c9a465
commit bda289b0ae

View file

@ -315,6 +315,14 @@ DisableDevice(DeviceIntPtr dev)
AttachDevice(NULL, other, NULL);
}
}
else
{
for (other = inputInfo.devices; other; other = other->next)
{
if (other->isMaster && other->u.lastSlave == dev)
other->u.lastSlave = NULL;
}
}
if (dev->isMaster && dev->spriteInfo->sprite)
{