Qt: Restore geometry before going fullscreen

Fixes fullscreen with separate window on another monitor popup switching
the fullscreen monitor case.
This commit is contained in:
Connor McLaughlin 2022-07-18 00:49:47 +10:00 committed by refractionpcsx2
parent 1767213321
commit bcde888257
1 changed files with 5 additions and 0 deletions

View File

@ -1816,6 +1816,11 @@ void MainWindow::createDisplayWidget(bool fullscreen, bool render_to_main, bool
if (fullscreen)
{
// Don't risk doing this on Wayland, it really doesn't like window state changes,
// and positioning has no effect anyway.
if (!s_use_central_widget)
restoreDisplayWindowGeometryFromConfig();
if (!is_exclusive_fullscreen)
container->showFullScreen();
else