make mouse cursor hiding more aware of focused window and bounds