dix: don't undisplay cursor if we don't own a sprite.
Sometimes we didn't have a cursor when coming back from suspend. Reason was that the suspend caused the server to lose the device that was attached to the VCP, and a RemoveDevice() would then set the cursor to NULL. Solution: only set the cursor to NULL if we actually own the sprite.
This commit is contained in:
parent
68b4f250ee
commit
937e5aae33
|
@ -885,6 +885,7 @@ RemoveDevice(DeviceIntPtr dev)
|
||||||
return BadImplementation;
|
return BadImplementation;
|
||||||
|
|
||||||
initialized = dev->inited;
|
initialized = dev->inited;
|
||||||
|
if (DevHasCursor(dev))
|
||||||
screen->DisplayCursor(dev, screen, NullCursor);
|
screen->DisplayCursor(dev, screen, NullCursor);
|
||||||
|
|
||||||
deviceid = dev->id;
|
deviceid = dev->id;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user