mirror of https://github.com/PCSX2/pcsx2.git
Qt: Use main window geometry for temporary window
When displaying the confirm popup when fullscreen.
This commit is contained in:
parent
b79edf1cb5
commit
f18964ad44
|
@ -2022,6 +2022,9 @@ std::optional<WindowInfo> MainWindow::acquireRenderWindow(bool recreate_window,
|
|||
}
|
||||
else
|
||||
{
|
||||
if (m_is_temporarily_windowed && g_emu_thread->shouldRenderToMain())
|
||||
container->setGeometry(geometry());
|
||||
else
|
||||
restoreDisplayWindowGeometryFromConfig();
|
||||
container->showNormal();
|
||||
}
|
||||
|
@ -2098,7 +2101,7 @@ void MainWindow::createDisplayWidget(bool fullscreen, bool render_to_main)
|
|||
// and positioning has no effect anyway.
|
||||
if (!s_use_central_widget)
|
||||
{
|
||||
if ((isVisible() || m_is_temporarily_windowed) && g_emu_thread->shouldRenderToMain())
|
||||
if (isVisible() && g_emu_thread->shouldRenderToMain())
|
||||
container->move(pos());
|
||||
else
|
||||
restoreDisplayWindowGeometryFromConfig();
|
||||
|
@ -2108,6 +2111,9 @@ void MainWindow::createDisplayWidget(bool fullscreen, bool render_to_main)
|
|||
}
|
||||
else if (!render_to_main)
|
||||
{
|
||||
if (m_is_temporarily_windowed && g_emu_thread->shouldRenderToMain())
|
||||
container->setGeometry(geometry());
|
||||
else
|
||||
restoreDisplayWindowGeometryFromConfig();
|
||||
container->showNormal();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue