some cursor- and mouse-related fixes