mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-21 09:50:05 +01:00
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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue