Skip to content

Commit 0438dc2

Browse files
committed
Qt: Fix exclusive fullscreen sometimes appearing on wrong screen
1 parent 818583d commit 0438dc2

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

pcsx2-qt/MainWindow.cpp

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2455,7 +2455,7 @@ void MainWindow::createDisplayWidget(bool fullscreen, bool render_to_main)
24552455
m_display_container = m_display_surface->createWindowContainer(getContentParent());
24562456
}
24572457

2458-
if (fullscreen)
2458+
if (fullscreen || g_emu_thread->isExclusiveFullscreen())
24592459
{
24602460
// On Wayland, while move/restoreGeometry can't position the window, it can influence which screen they show up on.
24612461
// Other platforms can position windows fine, but the only thing that matters here is the screen.
@@ -2465,13 +2465,21 @@ void MainWindow::createDisplayWidget(bool fullscreen, bool render_to_main)
24652465
m_display_surface->setFramePosition(pos());
24662466
else
24672467
restoreDisplayWindowGeometryFromConfig();
2468-
m_display_surface->showFullScreen();
2468+
2469+
if (fullscreen)
2470+
m_display_surface->showFullScreen();
2471+
else
2472+
m_display_surface->showNormal();
24692473
#else
24702474
if (isVisible() && g_emu_thread->shouldRenderToMain())
24712475
m_display_container->move(pos());
24722476
else
24732477
restoreDisplayWindowGeometryFromConfig();
2474-
m_display_container->showFullScreen();
2478+
2479+
if (fullscreen)
2480+
m_display_container->showFullScreen();
2481+
else
2482+
m_display_container->showNormal();
24752483
#endif
24762484
}
24772485
else if (!render_to_main)

0 commit comments

Comments
 (0)