Check window width and height