Moved when the window vars are set