Frame: Make RendererHasFocus() compatible with the new window structure.

This commit is contained in:
Jules Blok 2014-06-15 13:13:37 +02:00
parent 66fec6d0bd
commit 8d76dca30d

View file

@ -722,7 +722,11 @@ bool CFrame::RendererHasFocus()
if (m_RenderParent == nullptr)
return false;
#ifdef _WIN32
if (m_RenderParent->GetParent()->GetHWND() == GetForegroundWindow())
HWND window = GetForegroundWindow();
if (window == nullptr)
return false;
if (m_RenderFrame->GetHWND() == window)
return true;
#else
wxWindow *window = wxWindow::FindFocus();