Fixed some problems with window related stuff. A contract for window was
introduced.