Skip to content

Commit

Permalink
Qt: Open fullscreen window on same display as main
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek authored and lightningterror committed Feb 8, 2023
1 parent 7ad9a1a commit 25e0538
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pcsx2-qt/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2258,7 +2258,12 @@ void MainWindow::createDisplayWidget(bool fullscreen, bool render_to_main, bool
// 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 (isVisible() && g_emu_thread->shouldRenderToMain())
container->move(pos());
else
restoreDisplayWindowGeometryFromConfig();
}

if (!is_exclusive_fullscreen)
container->showFullScreen();
Expand Down

0 comments on commit 25e0538

Please sign in to comment.