diff options
author | Kahrl <kahrl@gmx.net> | 2013-06-02 17:53:20 +0200 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2013-06-03 15:25:48 +0200 |
commit | 9fe74a34ead5b774d8d0bf95d4ec83f9b323c9c6 (patch) | |
tree | 48183284852a52c094cd946169a9babad4c5bd0b /src | |
parent | 64befefcfcf6f9631d361d1326c53c8968b88e59 (diff) | |
download | minetest-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).
Diffstat (limited to 'src')
-rw-r--r-- | src/modalMenu.h | 1 |
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(); } |