Added code to configure window size and position on non-fullscreen run.