mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-15 03:20:31 +01:00
Reset lastSlave when disabling devices
This commit is contained in:
parent
2386c9a465
commit
bda289b0ae
1 changed files with 8 additions and 0 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue