From 73c26d26a01dd76b79beed73d12eb3bd8d728268 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Tue, 23 Dec 2008 10:00:34 +1000 Subject: [PATCH] xfree86: don't call CheckMotion if a device hasn't been enabled. #19176 X.Org Bug --- hw/xfree86/common/xf86Xinput.c | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c index fe62772..e39c087 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; -- 1.6.0.4