Verify whether the mouse is already on the proper window before moving it