diff options
author | Esteban I. Ruiz Moreno <exio4.com@gmail.com> | 2013-06-04 23:26:52 -0300 |
---|---|---|
committer | Kahrl <kahrl@gmx.net> | 2013-06-05 21:14:14 +0200 |
commit | 7cb521725569b7eda98af40f7e4b4eb63afff633 (patch) | |
tree | acb7380979a3cae877299d6669d14ce2de6325ba /src/game.cpp | |
parent | 4f6bec19bc0d838db6d1236e7815c0113bd05e81 (diff) | |
download | minetest-7cb521725569b7eda98af40f7e4b4eb63afff633.tar.gz minetest-7cb521725569b7eda98af40f7e4b4eb63afff633.tar.bz2 minetest-7cb521725569b7eda98af40f7e4b4eb63afff633.zip |
Close console when it loses focus but it is still on screen
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index 22bd8c429..2d43d05b8 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1684,6 +1684,10 @@ void the_game( { input->clear(); } + if (!guienv->hasFocus(gui_chat_console) && gui_chat_console->isOpen()) + { + gui_chat_console->closeConsoleAtOnce(); + } // Input handler step() (used by the random input generator) input->step(dtime); |