In NewInputDeviceRequest, only call EnableDevice if xf86Screens[0]->vtSema is
true, preventing unwanted behavior in the case where a device is added while the user is in a different VT.
This commit is contained in:
parent
42c2e14b25
commit
562ca3f2f9
|
@ -408,7 +408,7 @@ NewInputDeviceRequest (InputOption *options, DeviceIntPtr *pdev)
|
||||||
|
|
||||||
dev = pInfo->dev;
|
dev = pInfo->dev;
|
||||||
ActivateDevice(dev);
|
ActivateDevice(dev);
|
||||||
if (dev->inited && dev->startup)
|
if (dev->inited && dev->startup && xf86Screens[0]->vtSema)
|
||||||
EnableDevice(dev);
|
EnableDevice(dev);
|
||||||
|
|
||||||
*pdev = dev;
|
*pdev = dev;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user