mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
Merge pull request #9794 from Filoppi/fix_input_focus_bug
Fix input focus checks being wrong (issue 12540)
This commit is contained in:
@ -88,7 +88,7 @@ bool Host::GetRenderFocus()
|
|||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
// Unfortunately Qt calls SetRenderFocus() with a slight delay compared to what we actually need
|
// 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
|
// 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_main_window_handle.load();
|
||||||
return GetForegroundWindow() == (HWND)m_render_handle.load();
|
return GetForegroundWindow() == (HWND)m_render_handle.load();
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user