mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-06 04:38:08 +02:00
dix: reset potential lastSlaves when disabling an SD
Unplug a mouse, then warp the pointer and the warp pointer code will try to update the position of the last slave device associated with the master. That pointer will be stale and the X server will crash. Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
8c8c4fdf34
commit
67d7821ae7
1 changed files with 8 additions and 0 deletions
|
|
@ -358,6 +358,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