change cursor display based on if the window has focus or not