summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2008-12-23 10:00:34 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2009-01-05 11:05:13 +1000
commite1a3a1a0d85c9971aea65c2228b5fd4dbf3bf57a (patch)
tree4bd275992fc2024b87254ea400d4eef9209e4a7b
parentaf820259a06a6e8dbd299fe22347aa83b0c985b0 (diff)
xfree86: don't call CheckMotion if a device hasn't been enabled. #19176
X.Org Bug <http://bugs.freedesktop.org/show_bug.cgi?id=19176>
-rw-r--r--hw/xfree86/common/xf86Xinput.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c
index fe6277291..e39c087e2 100644
--- a/hw/xfree86/common/xf86Xinput.c
+++ b/hw/xfree86/common/xf86Xinput.c
@@ -549,10 +549,11 @@ xf86NewInputDevice(IDevPtr idev, DeviceIntPtr *pdev, BOOL enable)
ActivateDevice(dev);
/* Enable it if it's properly initialised and we're currently in the VT */
if (enable && dev->inited && dev->startup && xf86Screens[0]->vtSema)
+ {
EnableDevice(dev);
-
- /* send enter/leave event, update sprite window */
- CheckMotion(NULL, dev);
+ /* send enter/leave event, update sprite window */
+ CheckMotion(NULL, dev);
+ }
*pdev = dev;
return Success;