From ae633d9c86f8a42051a135ffa9e17488936f1144 Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Tue, 16 Oct 2018 08:51:10 -0700 Subject: [PATCH] Qt: Grab focus when game starts (fixes #804) --- CHANGES | 1 + src/platform/qt/Window.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index 1dcb44d03..a28ae16c2 100644 --- a/CHANGES +++ b/CHANGES @@ -130,6 +130,7 @@ Bugfixes: - GB Video: Fix SGB border hole size - PSP2: Fix tearing issues (fixes mgba.io/i/1211) - Qt: Fix mapping analog triggers (fixes mgba.io/i/495) + - Qt: Grab focus when game starts (fixes mgba.io/i/804) Misc: - mGUI: Add SGB border configuration option - mGUI: Add support for different settings types diff --git a/src/platform/qt/Window.cpp b/src/platform/qt/Window.cpp index ea03858f0..f876892e0 100644 --- a/src/platform/qt/Window.cpp +++ b/src/platform/qt/Window.cpp @@ -707,6 +707,7 @@ void Window::gameStarted() { } attachWidget(m_display.get()); m_display->setMinimumSize(size); + setFocus(); #ifndef Q_OS_MAC if (isFullScreen()) {