From 0bf0594903ee0b6ab17c9babc90aba0b08c9c9ac 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 files changed, 2 insertions(+), 1 deletions(-) diff --git a/dix/window.c b/dix/window.c index 9663578..caff1cb 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); -- 1.6.3.rc1.2.g0164.dirty