From 1e0df536c2fae85c317ce9c3cc17603d5f98c911 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Wed, 15 Oct 2008 20:33:15 +0000 Subject: moved client console into a Widget --- src/ui/window.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src/ui/window.cc') 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) -- cgit v1.2.3