When using MACOS_USE_BACKGROUND_COLOR_AS_TITLEBAR_COLOR, exiting fullscreen didn't update the titlebar, making it disappear.