mirror of
https://github.com/X11Libre/xserver.git
synced 2026-10-25 01:49:58 +00:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue