mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-26 15:45:42 +00:00
Qt: Make fullscreen open on same display as main window
This commit is contained in:
parent
dd7dfe348f
commit
c7ae0d9b68
|
@ -387,7 +387,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)
|
||||
{
|
||||
if (isVisible())
|
||||
container->move(pos());
|
||||
else
|
||||
restoreDisplayWindowGeometryFromConfig();
|
||||
}
|
||||
|
||||
if (!is_exclusive_fullscreen)
|
||||
container->showFullScreen();
|
||||
|
|
Loading…
Reference in a new issue