From 56ebacbdb9a6a9d1e17ee96805e09ae81a075090 Mon Sep 17 00:00:00 2001 From: Davide Pesavento Date: Fri, 18 Jul 2025 18:44:02 -0400 Subject: [PATCH] Qt: Don't exit fullscreen when switching to game list with RenderToSeparateWindow Amends 24a16db4376baccaf533fd4860c493a9c6d5f921 --- src/duckstation-qt/mainwindow.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/duckstation-qt/mainwindow.cpp b/src/duckstation-qt/mainwindow.cpp index 5298dba50..8813b5c5f 100644 --- a/src/duckstation-qt/mainwindow.cpp +++ b/src/duckstation-qt/mainwindow.cpp @@ -2189,8 +2189,9 @@ bool MainWindow::shouldHideMainWindow() const void MainWindow::switchToGameListView() { - // Normally, we'd never end up here. But on MacOS, the global menu is accessible while fullscreen. - exitFullscreen(true); + if (QtHost::CanRenderToMainWindow()) + // Normally, we'd never end up here. But on MacOS, the global menu is accessible while fullscreen. + exitFullscreen(true); if (!isShowingGameList()) { @@ -3040,8 +3041,7 @@ void MainWindow::onToolsCoverDownloaderTriggered() { // This can be invoked via big picture, so exit fullscreen. // Wait for the fullscreen request to actually go through, otherwise the downloader appears behind the main window. - if (isRenderingFullscreen()) - exitFullscreen(true); + exitFullscreen(true); if (!m_cover_download_window) {