xfree86: Don't initialize sprites for devices that don't own a sprite (stops
keyboard hotplug segfaults)
This commit is contained in:
parent
4b8b0e377a
commit
bc4ae25433
|
@ -421,7 +421,8 @@ NewInputDeviceRequest (InputOption *options)
|
||||||
EnableDevice(dev);
|
EnableDevice(dev);
|
||||||
|
|
||||||
/* send enter/leave event, update sprite window */
|
/* send enter/leave event, update sprite window */
|
||||||
InitializeSprite(dev, GetCurrentRootWindow());
|
if (dev->spriteOwner)
|
||||||
|
InitializeSprite(dev, GetCurrentRootWindow());
|
||||||
CheckMotion(NULL, dev);
|
CheckMotion(NULL, dev);
|
||||||
|
|
||||||
return Success;
|
return Success;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user