Qt: Work around game-list-disappear issue in Wayland

This commit is contained in:
Connor McLaughlin 2022-11-23 20:04:26 +10:00
parent 7a30c9ea43
commit 373297f35b
1 changed files with 2 additions and 2 deletions

View File

@ -294,7 +294,7 @@ bool MainWindow::updateDisplay(bool fullscreen, bool render_to_main, bool surfac
g_host_display->DestroyRenderSurface(); g_host_display->DestroyRenderSurface();
destroyDisplayWidget(surfaceless); destroyDisplayWidget(surfaceless || fullscreen);
// if we're going to surfaceless, we're done here // if we're going to surfaceless, we're done here
if (surfaceless) if (surfaceless)
@ -1804,7 +1804,7 @@ void MainWindow::switchToGameListView()
return; return;
} }
if (s_system_valid) if (m_display_created)
{ {
m_was_paused_on_surface_loss = s_system_paused; m_was_paused_on_surface_loss = s_system_paused;
if (!s_system_paused) if (!s_system_paused)