Qt: Fix bug where render window is not focused leaving fullscreen
This commit is contained in:
parent
20b60e0f01
commit
f2d5ce74df
|
@ -183,7 +183,10 @@ QWidget* QtHostInterface::createDisplayWidget(QWidget* parent)
|
||||||
|
|
||||||
m_display.release();
|
m_display.release();
|
||||||
m_display = std::unique_ptr<HostDisplay>(m_display_window->getHostDisplayInterface());
|
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()
|
bool QtHostInterface::createDisplayDeviceContext()
|
||||||
|
|
Loading…
Reference in New Issue