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:
@@ -3541,7 +3541,7 @@ ChangeWindowDeviceCursor(WindowPtr pWin,
|
|||||||
pWin->optional->deviceCursors = pNode->next;
|
pWin->optional->deviceCursors = pNode->next;
|
||||||
|
|
||||||
xfree(pNode);
|
xfree(pNode);
|
||||||
return Success;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
} else
|
} else
|
||||||
@@ -3586,6 +3586,7 @@ ChangeWindowDeviceCursor(WindowPtr pWin,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
out:
|
||||||
if (pWin->realized)
|
if (pWin->realized)
|
||||||
WindowHasNewCursor(pWin);
|
WindowHasNewCursor(pWin);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user