mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 13:49:53 -06:00
Merge pull request #735 from Armada651/d3dfullscreen_fixes
Fix hotkeys in Linux and Mac OS X (properly this time).
This commit is contained in:
@ -949,7 +949,14 @@ void CFrame::StartGame(const std::string& filename)
|
|||||||
m_RenderFrame->Bind(wxEVT_CLOSE_WINDOW, &CFrame::OnRenderParentClose, this);
|
m_RenderFrame->Bind(wxEVT_CLOSE_WINDOW, &CFrame::OnRenderParentClose, this);
|
||||||
m_RenderFrame->Bind(wxEVT_ACTIVATE, &CFrame::OnActive, this);
|
m_RenderFrame->Bind(wxEVT_ACTIVATE, &CFrame::OnActive, this);
|
||||||
m_RenderFrame->Bind(wxEVT_MOVE, &CFrame::OnRenderParentMove, this);
|
m_RenderFrame->Bind(wxEVT_MOVE, &CFrame::OnRenderParentMove, this);
|
||||||
|
#ifdef _WIN32
|
||||||
|
// The renderer should use a top-level window for exclusive fullscreen support.
|
||||||
m_RenderParent = m_RenderFrame;
|
m_RenderParent = m_RenderFrame;
|
||||||
|
#else
|
||||||
|
// To capture key events on Linux and Mac OS X the frame needs at least one child.
|
||||||
|
m_RenderParent = new wxPanel(m_RenderFrame, IDM_MPANEL, wxDefaultPosition, wxDefaultSize, 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
m_RenderFrame->Show();
|
m_RenderFrame->Show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user