Added some sanity checks on window dimensions.

3 files changed