It would appear that FindFocus() is (differently) broken on Windows.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5803 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
b372fe4329
commit
9de9ec1fb6
|
@ -740,12 +740,14 @@ void CFrame::OnSizeRequest(int& x, int& y, int& width, int& height)
|
|||
|
||||
bool CFrame::RendererHasFocus()
|
||||
{
|
||||
if (m_RenderParent == NULL || wxWindow::FindFocus() == NULL)
|
||||
if (m_RenderParent == NULL)
|
||||
return false;
|
||||
#ifdef _WIN32
|
||||
if (m_RenderParent->GetParent()->GetHWND() == GetForegroundWindow())
|
||||
return true;
|
||||
#else
|
||||
if (wxWindow::FindFocus() == NULL)
|
||||
return false;
|
||||
// Why these different cases?
|
||||
if (m_RenderParent == wxWindow::FindFocus() ||
|
||||
m_RenderParent == wxWindow::FindFocus()->GetParent() ||
|
||||
|
|
Loading…
Reference in New Issue