Fixing window creation to actually work for non-fullscreen.