Merge pull request #9794 from Filoppi/fix_input_focus_bug

Fix input focus checks being wrong (issue 12540)
This commit is contained in:
JMC47 2021-06-07 20:08:09 -04:00 committed by GitHub
commit ec8257ebe1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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