Qt: Grab focus when game starts (fixes #804)

This commit is contained in:
Vicki Pfau 2018-10-16 08:51:10 -07:00
parent 7e45e2efa6
commit 1408e5564a
2 changed files with 2 additions and 0 deletions

View File

@ -123,6 +123,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

View File

@ -707,6 +707,7 @@ void Window::gameStarted() {
}
attachWidget(m_display.get());
m_display->setMinimumSize(size);
setFocus();
#ifndef Q_OS_MAC
if (isFullScreen()) {