Hopefully fixed "RendererHasFocus()" on windows. Input should work again.

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5359 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
Jordan Woyak
2010-04-13 20:02:48 +00:00
parent 578828a142
commit 387aba7a6c
5 changed files with 9 additions and 25 deletions

View File

@ -757,8 +757,10 @@ bool CFrame::RendererHasFocus()
#ifdef _WIN32
// Why doesn't the "else" method below work in windows when called from
// Host_RendererHasFocus()?
bRendererHasFocus = m_RenderParent && (m_RenderParent == wxWindow::FindFocus());
return bRendererHasFocus;
if (m_RenderParent)
if (m_RenderParent->GetParent()->GetHWND() == GetForegroundWindow())
return true;
return false;
#else
return m_RenderParent && (m_RenderParent == wxWindow::FindFocus());
#endif