Made the default window size apply only if we are in a window mode.