mirror of https://github.com/PCSX2/pcsx2.git
Qt: Return main window info when not running
Needed for DInput.
This commit is contained in:
parent
2d7289a248
commit
f96ad8ff6e
|
@ -1364,7 +1364,7 @@ void MainWindow::checkForSettingChanges()
|
|||
|
||||
std::optional<WindowInfo> MainWindow::getWindowInfo()
|
||||
{
|
||||
if (isRenderingToMain())
|
||||
if (!m_display_widget || isRenderingToMain())
|
||||
return QtUtils::GetWindowInfoForWidget(this);
|
||||
else if (QWidget* widget = getDisplayContainer())
|
||||
return QtUtils::GetWindowInfoForWidget(widget);
|
||||
|
|
Loading…
Reference in New Issue