dix: when unsetting a cursor, update the sprite immediately (#23608)

Removing the device cursor while the cursor was within the window did not
update the visible sprite until the next enter/leave event.

X.Org Bug 23608 <http://bugs.freedesktop.org/show_bug.cgi?id=23608>

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Peter Hutterer 2009-09-02 10:53:40 +10:00
parent b41db8fe46
commit 993ca5acbd

View File

@ -3541,7 +3541,7 @@ ChangeWindowDeviceCursor(WindowPtr pWin,
pWin->optional->deviceCursors = pNode->next;
xfree(pNode);
return Success;
goto out;
}
} else
@ -3586,6 +3586,7 @@ ChangeWindowDeviceCursor(WindowPtr pWin,
}
}
out:
if (pWin->realized)
WindowHasNewCursor(pWin);