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

This commit is contained in:
Jules Blok committed 2014-07-19 21:14:38 +02:00
1 parent 66fec6d0bd
commit 8d76dca30d
1 file changed
+5 -1
+5 -1
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();