summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2014-12-30 03:52:38 +0100
committerbunnei <bunneidev@gmail.com>2014-12-30 03:52:38 +0100
commitdedbdb2dfb8330bf50bcda13e30a5c81467311e8 (patch)
tree7f694708d879862b05175b977997186b5b581c6a /src
parentMerge pull request #351 from yuriks/optimize (diff)
parentRemove duplicate work (diff)
downloadyuzu-dedbdb2dfb8330bf50bcda13e30a5c81467311e8.tar
yuzu-dedbdb2dfb8330bf50bcda13e30a5c81467311e8.tar.gz
yuzu-dedbdb2dfb8330bf50bcda13e30a5c81467311e8.tar.bz2
yuzu-dedbdb2dfb8330bf50bcda13e30a5c81467311e8.tar.lz
yuzu-dedbdb2dfb8330bf50bcda13e30a5c81467311e8.tar.xz
yuzu-dedbdb2dfb8330bf50bcda13e30a5c81467311e8.tar.zst
yuzu-dedbdb2dfb8330bf50bcda13e30a5c81467311e8.zip
Diffstat (limited to 'src')
-rw-r--r--src/citra_qt/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/citra_qt/main.cpp b/src/citra_qt/main.cpp
index 23d4925b8..b12e6a02b 100644
--- a/src/citra_qt/main.cpp
+++ b/src/citra_qt/main.cpp
@@ -230,12 +230,15 @@ void GMainWindow::ToggleWindowMode()
render_window->setParent(nullptr);
render_window->setVisible(true);
render_window->RestoreGeometry();
+ render_window->setFocusPolicy(Qt::NoFocus);
}
else if (!enable && render_window->parent() == nullptr)
{
render_window->BackupGeometry();
ui.horizontalLayout->addWidget(render_window);
render_window->setVisible(true);
+ render_window->setFocusPolicy(Qt::ClickFocus);
+ render_window->setFocus();
}
}