From 9fe74a34ead5b774d8d0bf95d4ec83f9b323c9c6 Mon Sep 17 00:00:00 2001 From: Kahrl Date: Sun, 2 Jun 2013 17:53:20 +0200 Subject: [PATCH] Call m_menumgr->deletingMenu from quitMenu in addition to destructor This fixes the bug where noMenuActive() keeps returning false after closing a menu until the mouse is moved, rendering the keyboard unusable (the_game calls input->clear() every frame when noMenuActive() is false). --- src/modalMenu.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modalMenu.h b/src/modalMenu.h index d19b4e27c..62bfabc06 100644 --- a/src/modalMenu.h +++ b/src/modalMenu.h @@ -99,6 +99,7 @@ public: allowFocusRemoval(true); // This removes Environment's grab on us Environment->removeFocus(this); + m_menumgr->deletingMenu(this); this->remove(); }