Update window.cpp

Updated to meet code quality standards
Merge pull request #2 from chrisborneman/patch-2

Update window.cpp