diff options
Diffstat (limited to 'src/ui/window.cc')
-rw-r--r-- | src/ui/window.cc | 9 |
1 files changed, 8 insertions, 1 deletions
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) |