Skip to content

Commit 757387a

Browse files
committed
Qt: Fix Exclusive Fullscreen not on right display
Add an explicit create() call that creates the HWND early . This makes sure when when rendering to main window, it stays on the current display the main window is at. This fixes the bug where rendering to main with exclusive fullscreen would move to the primary monitor. Not everyone may need this fix. Create() is implicity called in showFullscreen() or showNormal(), but there might be some certain combination of Windows settings or devices that may need it.
1 parent 4c42672 commit 757387a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pcsx2-qt/MainWindow.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2582,7 +2582,11 @@ void MainWindow::createDisplayWidget(bool fullscreen, bool render_to_main)
25822582

25832583
#ifdef DISPLAY_SURFACE_WINDOW
25842584
if (isVisible() && g_emu_thread->shouldRenderToMain())
2585+
{
2586+
m_display_surface->create();
25852587
m_display_surface->setPosition(screen()->availableGeometry().topLeft());
2588+
}
2589+
25862590
else
25872591
restoreDisplayWindowGeometryFromConfig();
25882592

0 commit comments

Comments
 (0)