From 17567b960fca351210f2a0e4981aa455c348edbc Mon Sep 17 00:00:00 2001 From: GovanifY Date: Fri, 19 Jul 2024 12:26:16 +0200 Subject: [PATCH] qt/MainWindow: for disable hide window if render to main is enabled This fixes a crash on wayland (and possibly others) --- pcsx2-qt/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2-qt/MainWindow.cpp b/pcsx2-qt/MainWindow.cpp index 46912ac112..cd85519cf2 100644 --- a/pcsx2-qt/MainWindow.cpp +++ b/pcsx2-qt/MainWindow.cpp @@ -1053,7 +1053,7 @@ bool MainWindow::shouldHideMouseCursor() const bool MainWindow::shouldHideMainWindow() const { // NOTE: We can't use isRenderingToMain() here, because this happens post-fullscreen-switch. - return Host::GetBoolSettingValue("UI", "HideMainWindowWhenRunning", false) || + return (Host::GetBoolSettingValue("UI", "HideMainWindowWhenRunning", false) && !g_emu_thread->shouldRenderToMain()) || (g_emu_thread->shouldRenderToMain() && (isRenderingFullscreen() || m_is_temporarily_windowed)) || QtHost::InNoGUIMode(); }