diff --git a/hw/xfree86/common/xf86Xinput.c b/hw/xfree86/common/xf86Xinput.c index c2ea10825..608fa9bb2 100644 --- a/hw/xfree86/common/xf86Xinput.c +++ b/hw/xfree86/common/xf86Xinput.c @@ -421,7 +421,8 @@ NewInputDeviceRequest (InputOption *options) EnableDevice(dev); /* send enter/leave event, update sprite window */ - InitializeSprite(dev, GetCurrentRootWindow()); + if (dev->spriteOwner) + InitializeSprite(dev, GetCurrentRootWindow()); CheckMotion(NULL, dev); return Success;