From d05bb877feac56245847f75c08a15f90085b48bb Mon Sep 17 00:00:00 2001 From: bmdhacks Date: Sun, 10 Aug 2025 17:27:36 -0700 Subject: [PATCH] fix a double-press bug where controller input on Lua dialog boxes was being broadcast down into whatever the last open dialog box was. --- apps/openmw/mwinput/controllermanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/openmw/mwinput/controllermanager.cpp b/apps/openmw/mwinput/controllermanager.cpp index a3a98200d9..fedcefe0b2 100644 --- a/apps/openmw/mwinput/controllermanager.cpp +++ b/apps/openmw/mwinput/controllermanager.cpp @@ -255,7 +255,7 @@ namespace MWInput winMgr->setCursorActive(false); MWGui::WindowBase* topWin = winMgr->getActiveControllerWindow(); - if (topWin) + if (topWin && topWin->isVisible()) { // When the inventory tooltip is visible, we don't actually want the A button to // act like a mouse button; it should act normally.