From e0519a899f9ae826001278b94d6e813df292b2c7 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Tue, 15 Sep 2026 14:58:18 +1000 Subject: [PATCH] VideoThread: Use video-owned fullscreen settings Read exclusive fullscreen control from the GPU settings copy on the video thread, preserving queued settings ordering and avoiding a settings race. --- src/core/video_thread.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/video_thread.cpp b/src/core/video_thread.cpp index 24b0a2a69..637aa180a 100644 --- a/src/core/video_thread.cpp +++ b/src/core/video_thread.cpp @@ -1468,10 +1468,10 @@ void VideoThread::RecreateRenderWindowOnThread(bool fullscreen, bool allow_exclu exclusive_fullscreen_requested = fullscreen_mode.has_value(); } std::optional exclusive_fullscreen_control; - if (g_settings.display_exclusive_fullscreen_control != DisplayExclusiveFullscreenControl::Automatic) + if (g_gpu_settings.display_exclusive_fullscreen_control != DisplayExclusiveFullscreenControl::Automatic) { exclusive_fullscreen_control = - (g_settings.display_exclusive_fullscreen_control == DisplayExclusiveFullscreenControl::Allowed); + (g_gpu_settings.display_exclusive_fullscreen_control == DisplayExclusiveFullscreenControl::Allowed); } g_gpu_device->DestroyMainSwapChain();