Don't send a mouse leave event if the mouse is outside the window when gaining focus and in relative mode.