put window-related variables into a struct