From e2b15c76e438e8325feafef23435d473f9c2e776 Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Fri, 29 Jul 2011 21:08:53 +0000 Subject: Do not raise ui::Window instances on show(), emit signals on window show() and hide(). --- src/ui/window.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/ui/window.cc') diff --git a/src/ui/window.cc b/src/ui/window.cc index 8571eec..e7b756a 100644 --- a/src/ui/window.cc +++ b/src/ui/window.cc @@ -27,12 +27,19 @@ void Window::show() { resize(); Widget::show(); - raise(); + //raise(); Widget *w = this; while (w && w->visible()) { w->set_focus(); w = w->parent(); } + emit(EventWindowShow); +} + +void Window::hide() +{ + Widget::hide(); + emit(EventWindowHide); } void Window::set_previous(Window *previous) -- cgit v1.2.3