Set render window to also accept focus via tabbing (Qt::StrongFocus) (#5089)

This commit is contained in:
Vitor K 2020-03-26 15:36:49 -03:00 committed by GitHub
parent 407fd15515
commit 9226bffa96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1467,7 +1467,7 @@ void GMainWindow::ToggleWindowMode() {
// Render in the main window...
render_window->BackupGeometry();
ui.horizontalLayout->addWidget(render_window);
render_window->setFocusPolicy(Qt::ClickFocus);
render_window->setFocusPolicy(Qt::StrongFocus);
if (emulation_running) {
render_window->setVisible(true);
render_window->setFocus();