1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-10-16 11:46:34 +00:00

fix a double-press bug where controller input on Lua dialog boxes was being broadcast down into whatever the last open dialog box was.

This commit is contained in:
bmdhacks 2025-08-10 17:27:36 -07:00
parent b5f87a9d50
commit d05bb877fe

View file

@ -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.