move window related stuff to its own unit

(0) -1 +1 +10 +30 tip

mercurial