glfw takes care of this for us.