aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2013-06-02 17:53:20 +0200
committerKahrl <kahrl@gmx.net>2013-06-03 15:25:48 +0200
commit9fe74a34ead5b774d8d0bf95d4ec83f9b323c9c6 (patch)
tree48183284852a52c094cd946169a9babad4c5bd0b
parent64befefcfcf6f9631d361d1326c53c8968b88e59 (diff)
downloadminetest-9fe74a34ead5b774d8d0bf95d4ec83f9b323c9c6.tar.gz
minetest-9fe74a34ead5b774d8d0bf95d4ec83f9b323c9c6.tar.bz2
minetest-9fe74a34ead5b774d8d0bf95d4ec83f9b323c9c6.zip
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).
-rw-r--r--src/modalMenu.h1
1 files changed, 1 insertions, 0 deletions
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();
}