Went back to old window detection mode