From b36b4e4ad1fa2e277d212b312bfbf66b350f4104 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Tue, 12 Jul 2022 13:11:56 +1000 Subject: [PATCH] Qt: Hide main window when in fullscreen --- pcsx2-qt/MainWindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcsx2-qt/MainWindow.cpp b/pcsx2-qt/MainWindow.cpp index 6fa4cf944c..0f4a905e06 100644 --- a/pcsx2-qt/MainWindow.cpp +++ b/pcsx2-qt/MainWindow.cpp @@ -801,7 +801,7 @@ void MainWindow::updateWindowState(bool force_visible) if (m_is_closing) return; - const bool hide_window = !g_emu_thread->isRenderingToMain() && shouldHideMainWindow(); + const bool hide_window = !isRenderingToMain() && shouldHideMainWindow(); const bool disable_resize = Host::GetBaseBoolSettingValue("UI", "DisableWindowResize", false); const bool has_window = s_vm_valid || m_display_widget; @@ -874,7 +874,7 @@ bool MainWindow::shouldHideMouseCursor() const bool MainWindow::shouldHideMainWindow() const { - return Host::GetBaseBoolSettingValue("UI", "HideMainWindowWhenRunning", false) || QtHost::InNoGUIMode(); + return Host::GetBaseBoolSettingValue("UI", "HideMainWindowWhenRunning", false) || isRenderingFullscreen() || QtHost::InNoGUIMode(); } void MainWindow::switchToGameListView()