summaryrefslogtreecommitdiff
path: root/plugingui/window.cc
diff options
context:
space:
mode:
Diffstat (limited to 'plugingui/window.cc')
-rw-r--r--plugingui/window.cc7
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;