mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-05-05 07:38:22 +02:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue