mirror of https://github.com/PCSX2/pcsx2.git
Qt: Open fullscreen window on same display as main
This commit is contained in:
parent
7ad9a1af03
commit
25e05388ba
|
@ -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,
|
// Don't risk doing this on Wayland, it really doesn't like window state changes,
|
||||||
// and positioning has no effect anyway.
|
// and positioning has no effect anyway.
|
||||||
if (!s_use_central_widget)
|
if (!s_use_central_widget)
|
||||||
restoreDisplayWindowGeometryFromConfig();
|
{
|
||||||
|
if (isVisible() && g_emu_thread->shouldRenderToMain())
|
||||||
|
container->move(pos());
|
||||||
|
else
|
||||||
|
restoreDisplayWindowGeometryFromConfig();
|
||||||
|
}
|
||||||
|
|
||||||
if (!is_exclusive_fullscreen)
|
if (!is_exclusive_fullscreen)
|
||||||
container->showFullScreen();
|
container->showFullScreen();
|
||||||
|
|
Loading…
Reference in New Issue