Fix a regression with the mouse cursor