From 993ca5acbdccef9e43cd6580e7cc22cfda1a2578 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Wed, 2 Sep 2009 10:53:40 +1000 Subject: [PATCH] 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 Signed-off-by: Peter Hutterer --- dix/window.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dix/window.c b/dix/window.c index 9663578f7..caff1cbff 100644 --- a/dix/window.c +++ b/dix/window.c @@ -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);