diff --git a/Source/Core/DolphinQt/MainWindow.cpp b/Source/Core/DolphinQt/MainWindow.cpp index 4bb13e29e2..bd3b0e103b 100644 --- a/Source/Core/DolphinQt/MainWindow.cpp +++ b/Source/Core/DolphinQt/MainWindow.cpp @@ -261,16 +261,6 @@ void DMainWindow::OnCoreStateChanged(Core::EState state) m_game_tracker->setEnabled(is_not_initialized); } -bool DMainWindow::RenderWidgetHasFocus() -{ - if (SConfig::GetInstance().m_LocalCoreStartupParameter.bRenderToMain) - return isActiveWindow(); - else if (m_render_widget != nullptr) - return m_render_widget->isActiveWindow(); - else - return false; -} - // Update all the icons used in DMainWindow with fresh ones from // "Resources". Call this function after changing the icon theme. void DMainWindow::UpdateIcons() diff --git a/Source/Core/DolphinQt/MainWindow.h b/Source/Core/DolphinQt/MainWindow.h index 7b17c5eaa4..cee7743adb 100644 --- a/Source/Core/DolphinQt/MainWindow.h +++ b/Source/Core/DolphinQt/MainWindow.h @@ -27,7 +27,7 @@ public: ~DMainWindow(); // DRenderWidget - bool RenderWidgetHasFocus(); + bool RenderWidgetHasFocus() const { return m_render_widget->isActiveWindow(); } DRenderWidget* GetRenderWidget() { return m_render_widget.get(); } signals: