mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 08:03:45 +01:00
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).
This commit is contained in:
parent
64befefcfc
commit
9fe74a34ea
@ -99,6 +99,7 @@ public:
|
|||||||
allowFocusRemoval(true);
|
allowFocusRemoval(true);
|
||||||
// This removes Environment's grab on us
|
// This removes Environment's grab on us
|
||||||
Environment->removeFocus(this);
|
Environment->removeFocus(this);
|
||||||
|
m_menumgr->deletingMenu(this);
|
||||||
this->remove();
|
this->remove();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user