From 7c83b745c5589e973b1e6030973956885b144902 Mon Sep 17 00:00:00 2001 From: Filoppi Date: Mon, 7 Jun 2021 14:35:59 +0300 Subject: [PATCH] Qt: fix input focus checks being wrong When rendering to main and going full screen, we aren't using the main window handle as the code assumed, but the other, detached, render widget. --- Source/Core/DolphinQt/Host.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt/Host.cpp b/Source/Core/DolphinQt/Host.cpp index f85b0b7262..9b9c9f0d7d 100644 --- a/Source/Core/DolphinQt/Host.cpp +++ b/Source/Core/DolphinQt/Host.cpp @@ -88,7 +88,7 @@ bool Host::GetRenderFocus() #ifdef _WIN32 // Unfortunately Qt calls SetRenderFocus() with a slight delay compared to what we actually need // to avoid inputs that cause a focus loss to be processed by the emulation - if (m_render_to_main) + if (m_render_to_main && !m_render_fullscreen) return GetForegroundWindow() == (HWND)m_main_window_handle.load(); return GetForegroundWindow() == (HWND)m_render_handle.load(); #else