From f96ad8ff6e3a3931e47b54f9553a7b18dc94fd2b Mon Sep 17 00:00:00 2001 From: Stenzek Date: Mon, 2 Jan 2023 12:41:49 +1000 Subject: [PATCH] Qt: Return main window info when not running Needed for DInput. --- pcsx2-qt/MainWindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pcsx2-qt/MainWindow.cpp b/pcsx2-qt/MainWindow.cpp index 9869d94a98..051e6127c6 100644 --- a/pcsx2-qt/MainWindow.cpp +++ b/pcsx2-qt/MainWindow.cpp @@ -1364,7 +1364,7 @@ void MainWindow::checkForSettingChanges() std::optional MainWindow::getWindowInfo() { - if (isRenderingToMain()) + if (!m_display_widget || isRenderingToMain()) return QtUtils::GetWindowInfoForWidget(this); else if (QWidget* widget = getDisplayContainer()) return QtUtils::GetWindowInfoForWidget(widget);