mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-11 00:29:11 +01:00
Frame: Make RendererHasFocus() compatible with the new window structure.
This commit is contained in:
parent
66fec6d0bd
commit
8d76dca30d
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user