lol I was checking for window size in two places