From 373297f35b31cee1a60628fde2ed0e81b72ff464 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Wed, 23 Nov 2022 20:04:26 +1000 Subject: [PATCH] Qt: Work around game-list-disappear issue in Wayland --- src/duckstation-qt/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/duckstation-qt/mainwindow.cpp b/src/duckstation-qt/mainwindow.cpp index 8cf841a06..ebf44ab1e 100644 --- a/src/duckstation-qt/mainwindow.cpp +++ b/src/duckstation-qt/mainwindow.cpp @@ -294,7 +294,7 @@ bool MainWindow::updateDisplay(bool fullscreen, bool render_to_main, bool surfac g_host_display->DestroyRenderSurface(); - destroyDisplayWidget(surfaceless); + destroyDisplayWidget(surfaceless || fullscreen); // if we're going to surfaceless, we're done here if (surfaceless) @@ -1804,7 +1804,7 @@ void MainWindow::switchToGameListView() return; } - if (s_system_valid) + if (m_display_created) { m_was_paused_on_surface_loss = s_system_paused; if (!s_system_paused)