diff options
author | Stijn Buys <ingar@osirion.org> | 2008-10-15 20:33:15 +0000 |
---|---|---|
committer | Stijn Buys <ingar@osirion.org> | 2008-10-15 20:33:15 +0000 |
commit | 1e0df536c2fae85c317ce9c3cc17603d5f98c911 (patch) | |
tree | 3ab262d51451cda3e926e9581b294f08d39031d9 /src/ui/window.cc | |
parent | 97fca172fd51270cebd5b722f861a6c753bd4d2a (diff) |
moved client console into a Widget
Diffstat (limited to 'src/ui/window.cc')
-rw-r--r-- | src/ui/window.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/ui/window.cc b/src/ui/window.cc index e79262f..3015a10 100644 --- a/src/ui/window.cc +++ b/src/ui/window.cc @@ -23,11 +23,16 @@ Window::~Window() { } -void Window::show() { +void Window::show() +{ resize(); Widget::show(); raise(); - set_focus(); + Widget *w = this; + while (w && w->visible()) { + w->set_focus(); + w = w->parent(); + } } void Window::set_previous(Window *previous) |