From 7c80fcde53d852c05e91ab7b130f78bdabd12f83 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Wed, 8 May 2019 17:04:46 -0700 Subject: [PATCH] Allow interacting with the render window while configuring controllers WindowModal allows alt+tabing to the render window, but prohibits interaction with parent windows (controller settings window and the main dolphin window). --- Source/Core/DolphinQt/Config/ControllersWindow.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt/Config/ControllersWindow.cpp b/Source/Core/DolphinQt/Config/ControllersWindow.cpp index fb5813bdc1..3eeec77e0f 100644 --- a/Source/Core/DolphinQt/Config/ControllersWindow.cpp +++ b/Source/Core/DolphinQt/Config/ControllersWindow.cpp @@ -426,7 +426,10 @@ void ControllersWindow::OnGCPadConfigure() return; } - MappingWindow(this, type, static_cast(index)).exec(); + MappingWindow* window = new MappingWindow(this, type, static_cast(index)); + window->setAttribute(Qt::WA_DeleteOnClose, true); + window->setWindowModality(Qt::WindowModality::WindowModal); + window->show(); } void ControllersWindow::OnWiimoteConfigure() @@ -451,7 +454,10 @@ void ControllersWindow::OnWiimoteConfigure() return; } - MappingWindow(this, type, static_cast(index)).exec(); + MappingWindow* window = new MappingWindow(this, type, static_cast(index)); + window->setAttribute(Qt::WA_DeleteOnClose, true); + window->setWindowModality(Qt::WindowModality::WindowModal); + window->show(); } void ControllersWindow::LoadSettings()