From f2d5ce74dfb5112a80645d83a70e707347639831 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 24 Jan 2020 14:50:47 +1000 Subject: [PATCH] Qt: Fix bug where render window is not focused leaving fullscreen --- src/duckstation-qt/qthostinterface.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/duckstation-qt/qthostinterface.cpp b/src/duckstation-qt/qthostinterface.cpp index 77b159f56..263253f78 100644 --- a/src/duckstation-qt/qthostinterface.cpp +++ b/src/duckstation-qt/qthostinterface.cpp @@ -183,7 +183,10 @@ QWidget* QtHostInterface::createDisplayWidget(QWidget* parent) m_display.release(); m_display = std::unique_ptr(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()