diff --git a/apps/openmw/mwinput/controllermanager.cpp b/apps/openmw/mwinput/controllermanager.cpp index a3a98200d9..c0a7dbbae0 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. @@ -353,7 +353,7 @@ namespace MWInput } MWGui::WindowBase* topWin = winMgr->getActiveControllerWindow(); - if (topWin) + if (topWin && topWin->isVisible()) { // Update cursor state mGamepadGuiCursorEnabled = topWin->isGamepadCursorAllowed();