Re-fixed fullscreen/windowed mode

Fixing shutdown broke fullscreen/windowed mode. Fixed again.