window detection first commit