qt/MainWindow: for disable hide window if render to main is enabled

This fixes a crash on wayland (and possibly others)
This commit is contained in:
GovanifY authored and Ty committed 2024-07-19 07:49:50 -04:00
1 parent 7a3d22ecdf
commit 17567b960f
1 file changed
+1 -1
+1 -1
View File
@@ -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();
}