Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2011-07-29 21:08:53 +0000
committerStijn Buys <ingar@osirion.org>2011-07-29 21:08:53 +0000
commite2b15c76e438e8325feafef23435d473f9c2e776 (patch)
tree835208e1b9e17557bd9a0b0b76a5b7f2af0f6125 /src/ui/console.cc
parente1330a195c465309c25822d9365d3b0812fb8048 (diff)
Do not raise ui::Window instances on show(), emit signals on window show() and hide().
Diffstat (limited to 'src/ui/console.cc')
-rw-r--r--src/ui/console.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/console.cc b/src/ui/console.cc
index 67d5054..5c15bc5 100644
--- a/src/ui/console.cc
+++ b/src/ui/console.cc
@@ -74,6 +74,7 @@ Console::~Console()
void Console::show()
{
ui::Window::show();
+ raise();
SDL_WM_GrabInput(SDL_GRAB_OFF);
SDL_ShowCursor(SDL_ENABLE);
@@ -83,7 +84,8 @@ void Console::show()
history_pos = history.rbegin();
(*history_pos).clear();
console_input->set_text((*history_pos));
-
+ console_input->set_focus();
+
audio::play("ui/console");
}