Skip to content

Commit

Permalink
qt/MainWindow: for disable hide window if render to main is enabled
Browse files Browse the repository at this point in the history
This fixes a crash on wayland (and possibly others)
  • Loading branch information
GovanifY authored and F0bes committed Jul 19, 2024
1 parent 7a3d22e commit 17567b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsx2-qt/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 17567b9

Please sign in to comment.