Qt: Fix bug where render window is not focused leaving fullscreen

This commit is contained in:
Connor McLaughlin 2020-01-24 14:50:47 +10:00
parent 20b60e0f01
commit f2d5ce74df
1 changed files with 4 additions and 1 deletions

View File

@ -183,7 +183,10 @@ QWidget* QtHostInterface::createDisplayWidget(QWidget* parent)
m_display.release();
m_display = std::unique_ptr<HostDisplay>(m_display_window->getHostDisplayInterface());
return QWidget::createWindowContainer(m_display_window, parent);
QWidget* widget = QWidget::createWindowContainer(m_display_window, parent);
widget->setFocusPolicy(Qt::StrongFocus);
return widget;
}
bool QtHostInterface::createDisplayDeviceContext()