diff options
Diffstat (limited to 'Source/Core')
| -rw-r--r-- | Source/Core/DolphinQt/RenderWidget.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt/RenderWidget.cpp b/Source/Core/DolphinQt/RenderWidget.cpp index 4ca6ece1a9..f286b765e1 100644 --- a/Source/Core/DolphinQt/RenderWidget.cpp +++ b/Source/Core/DolphinQt/RenderWidget.cpp @@ -384,6 +384,10 @@ bool RenderWidget::event(QEvent* event) SetCursorLocked(false); break; case QEvent::MouseButtonPress: + + // Grab focus to stop unwanted keyboard input UI interaction. + setFocus(); + if (isActiveWindow()) { // Lock the cursor with any mouse button click (behave the same as window focus change). |
