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:
Zephaniah E. Hull 2007-06-18 12:00:49 -04:00
parent 42c2e14b25
commit 562ca3f2f9

View File

@ -408,7 +408,7 @@ NewInputDeviceRequest (InputOption *options, DeviceIntPtr *pdev)
dev = pInfo->dev;
ActivateDevice(dev);
if (dev->inited && dev->startup)
if (dev->inited && dev->startup && xf86Screens[0]->vtSema)
EnableDevice(dev);
*pdev = dev;