WX: Fix 'renderer has focus' returning false after start

The main window was already active, so the activate event was never
emitted, and m_renderer_has_focus was never changed.
This commit is contained in:
Léo Lam 2017-07-29 22:47:20 +08:00
parent ba57605266
commit f0aa454662
1 changed files with 1 additions and 0 deletions

View File

@ -654,6 +654,7 @@ void CFrame::StartGame(std::unique_ptr<BootParameters> boot)
m_game_list_ctrl->Disable(); m_game_list_ctrl->Disable();
m_game_list_ctrl->Hide(); m_game_list_ctrl->Hide();
m_renderer_has_focus = true;
m_render_parent = m_panel; m_render_parent = m_panel;
m_render_frame = this; m_render_frame = this;
if (SConfig::GetInstance().bKeepWindowOnTop) if (SConfig::GetInstance().bKeepWindowOnTop)