diff options
| author | Leo Lam <leolino.lam@gmail.com> | 2017-10-05 21:11:20 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-05 21:11:20 +0200 |
| commit | 5f0de43828666aef78e59d6f822cdb1392106e3e (patch) | |
| tree | 1f4fccdcfd69aef2e6a507726a65c18435d5565e /Source/Core/DolphinWX/FrameTools.cpp | |
| parent | 7d47b0283705e145a21af08f605169ccae90d6f7 (diff) | |
| parent | 6d04d4b9a28a59dd34705c56be648dd46fcca786 (diff) | |
Merge pull request #6098 from aleios/master
WX: Reshow cursor after game termination (issue 10503)
Diffstat (limited to 'Source/Core/DolphinWX/FrameTools.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/FrameTools.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/Core/DolphinWX/FrameTools.cpp b/Source/Core/DolphinWX/FrameTools.cpp index 663da377f8..e8c7b4f487 100644 --- a/Source/Core/DolphinWX/FrameTools.cpp +++ b/Source/Core/DolphinWX/FrameTools.cpp @@ -711,7 +711,6 @@ void CFrame::StartGame(std::unique_ptr<BootParameters> boot) // To capture key events on Linux and Mac OS X the frame needs at least one child. m_render_parent = new wxPanel(m_render_frame, IDM_MPANEL, wxDefaultPosition, wxDefaultSize, 0); #endif - m_render_frame->Show(); } @@ -760,6 +759,8 @@ void CFrame::StartGame(std::unique_ptr<BootParameters> boot) wxTheApp->Bind(wxEVT_MIDDLE_UP, &CFrame::OnMouse, this); wxTheApp->Bind(wxEVT_MOTION, &CFrame::OnMouse, this); m_render_parent->Bind(wxEVT_SIZE, &CFrame::OnRenderParentResize, this); + + m_render_parent->SetCursor(wxCURSOR_BLANK); } } @@ -910,6 +911,9 @@ void CFrame::DoStop() return; } + // Reshow the cursor on the parent frame after successful stop. + m_render_parent->SetCursor(wxNullCursor); + Core::Stop(); UpdateGUI(); } |
