Only set window size when using the gui