diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-04-21 23:44:43 +0200 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2017-04-21 23:44:43 +0200 |
commit | 6e2b4f4bdd36844721f50b71d0cbc159363ba25f (patch) | |
tree | 5c1dfa9c266e5aa1893f200d0488426d2c24edf9 /plugingui/window.cc | |
parent | 1d7e0a638c9735d1b8a678df7f48183d046cc3e7 (diff) |
Distinguish between widget and window wrt. visible().
Diffstat (limited to 'plugingui/window.cc')
-rw-r--r-- | plugingui/window.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/plugingui/window.cc b/plugingui/window.cc index 3840643..099cb91 100644 --- a/plugingui/window.cc +++ b/plugingui/window.cc @@ -71,6 +71,8 @@ Window::Window(void* native_window) #endif // !UI_PUGL eventhandler = new EventHandler(*native, *this); + + setVisible(true); // The root widget is always visible. } Window::~Window() @@ -118,11 +120,6 @@ void Window::hide() Widget::hide(); } -bool Window::visible() const -{ - return native->visible(); -} - Window* Window::window() { return this; |