diff options
author | ShadowNinja <shadowninja@minetest.net> | 2016-02-27 15:51:09 -0500 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2016-03-02 23:23:31 -0500 |
commit | 3edb7575a1ccca631994c0f5515b770b7a3e20d2 (patch) | |
tree | 7298aa5ac133e57594febab7ac26227f5ec1646b /src/game.cpp | |
parent | effa24737d6997dc40508533635accca3ed099e9 (diff) | |
download | minetest-3edb7575a1ccca631994c0f5515b770b7a3e20d2.tar.gz minetest-3edb7575a1ccca631994c0f5515b770b7a3e20d2.tar.bz2 minetest-3edb7575a1ccca631994c0f5515b770b7a3e20d2.zip |
Unlock cursor when opening console
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index 3d5f86e21..6fba70df6 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -2175,7 +2175,7 @@ bool Game::initGui() // Chat backend and console gui_chat_console = new GUIChatConsole(guienv, guienv->getRootGUIElement(), - -1, chat_backend, client); + -1, chat_backend, client, &g_menumgr); if (!gui_chat_console) { *error_message = "Could not allocate memory for chat console"; errorstream << *error_message << std::endl; @@ -2809,7 +2809,6 @@ void Game::openConsole(float height, const wchar_t *line) gui_chat_console->setCloseOnEnter(true); gui_chat_console->replaceAndAddToHistory(line); } - guienv->setFocus(gui_chat_console); } } |