dix: close virtual core devices after other devices.
If a device is paired with the VCP, deleting the VCP before the device will segfault the server when the sprite should get updated.
This commit is contained in:
parent
03680a384a
commit
49dbe9a757
|
@ -712,9 +712,6 @@ CloseDownDevices(void)
|
|||
{
|
||||
DeviceIntPtr dev, next;
|
||||
|
||||
CloseDevice(inputInfo.keyboard);
|
||||
CloseDevice(inputInfo.pointer);
|
||||
|
||||
for (dev = inputInfo.devices; dev; dev = next)
|
||||
{
|
||||
next = dev->next;
|
||||
|
@ -725,6 +722,10 @@ CloseDownDevices(void)
|
|||
next = dev->next;
|
||||
CloseDevice(dev);
|
||||
}
|
||||
|
||||
CloseDevice(inputInfo.keyboard);
|
||||
CloseDevice(inputInfo.pointer);
|
||||
|
||||
inputInfo.devices = NULL;
|
||||
inputInfo.off_devices = NULL;
|
||||
inputInfo.keyboard = NULL;
|
||||
|
|
Loading…
Reference in New Issue
Block a user