From 562ca3f2f9005e7c5ed0a24b0759051ded2173e9 Mon Sep 17 00:00:00 2001 From: "Zephaniah E. Hull" Date: Mon, 18 Jun 2007 12:00:49 -0400 Subject: [PATCH] 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. --- hw/xfree86/common/xf86Xinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c index 543002000..c08b15f7e 100644 --- a/hw/xfree86/common/xf86Xinput.c +++ b/hw/xfree86/common/xf86Xinput.c @@ -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;